pub struct LabelSubstContext<'a> {
pub node_name: &'a str,
pub graph_name: &'a str,
pub tail_name: &'a str,
pub head_name: &'a str,
pub is_edge: bool,
pub is_directed: bool,
pub tail_port: Option<&'a str>,
pub head_port: Option<&'a str>,
pub label_text: &'a str,
pub pen_color: Option<&'a str>,
pub is_node: bool,
pub has_label: bool,
}Expand description
Context for Graphviz object-based escape sequence substitution (\N, \G, \T, \H, \E, \L).
Fields§
§node_name: &'a str§graph_name: &'a str§tail_name: &'a str§head_name: &'a str§is_edge: bool§is_directed: bool§tail_port: Option<&'a str>§head_port: Option<&'a str>§label_text: &'a str§pen_color: Option<&'a str>getPenColor(obj) (pencolor, else color), which an HTML label’s outermost
table without a COLOR takes (make_html_label).
is_node: boolThe object is a node (its name may be empty).
has_label: boolThe object has a main label (ND_label, ED_label, GD_label), whose text is
label_text even when empty; without one \L stays literal.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for LabelSubstContext<'a>
impl<'a> Clone for LabelSubstContext<'a>
Source§fn clone(&self) -> LabelSubstContext<'a>
fn clone(&self) -> LabelSubstContext<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for LabelSubstContext<'a>
impl<'a> Debug for LabelSubstContext<'a>
Source§impl<'a> Default for LabelSubstContext<'a>
impl<'a> Default for LabelSubstContext<'a>
Source§fn default() -> LabelSubstContext<'a>
fn default() -> LabelSubstContext<'a>
Returns the “default value” for a type. Read more
impl<'a> Eq for LabelSubstContext<'a>
Source§impl<'a> PartialEq for LabelSubstContext<'a>
impl<'a> PartialEq for LabelSubstContext<'a>
impl<'a> StructuralPartialEq for LabelSubstContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for LabelSubstContext<'a>
impl<'a> RefUnwindSafe for LabelSubstContext<'a>
impl<'a> Send for LabelSubstContext<'a>
impl<'a> Sync for LabelSubstContext<'a>
impl<'a> Unpin for LabelSubstContext<'a>
impl<'a> UnsafeUnpin for LabelSubstContext<'a>
impl<'a> UnwindSafe for LabelSubstContext<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more