Enum dotavious::attributes::AttributeText [−][src]
pub enum AttributeText<'a> {
AttrStr(Cow<'a, str>),
EscStr(Cow<'a, str>),
HtmlStr(Cow<'a, str>),
QuotedStr(Cow<'a, str>),
}
Expand description
The text for a graphviz label on a node or edge.
Variants
Preserves the text directly as is.
This kind of label uses the graphviz label escString type: http://www.graphviz.org/doc/info/attrs.html#k:escString
Occurrences of backslashes (\
) are not escaped; instead they
are interpreted as initiating an escString escape sequence.
Escape sequences of particular interest: in addition to \n
to break a line (centering the line preceding the \n
), there
are also the escape sequences \l
which left-justifies the
preceding line and \r
which right-justifies it.
This uses a graphviz HTML string label.
The string is printed exactly as given, but between <
and >
.
No escaping is performed.
Preserves the text directly as is but wrapped in quotes.
Occurrences of backslashes (\
) are escaped, and thus appear
as backslashes in the rendered label.
Implementations
Renders text as string suitable for a attribute in a .dot file. This includes quotes or suitable delimiters.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for AttributeText<'a>
impl<'a> Send for AttributeText<'a>
impl<'a> Sync for AttributeText<'a>
impl<'a> Unpin for AttributeText<'a>
impl<'a> UnwindSafe for AttributeText<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.