Enum dotavious::attributes::AttributeText [−][src]
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
impl<'a> AttributeText<'a>
[src]
pub fn attr<S: Into<Cow<'a, str>>>(s: S) -> AttributeText<'a>
[src]
pub fn escaped<S: Into<Cow<'a, str>>>(s: S) -> AttributeText<'a>
[src]
pub fn html<S: Into<Cow<'a, str>>>(s: S) -> AttributeText<'a>
[src]
pub fn quoted<S: Into<Cow<'a, str>>>(s: S) -> AttributeText<'a>
[src]
pub fn dot_string(&self) -> String
[src]
Renders text as string suitable for a attribute in a .dot file. This includes quotes or suitable delimiters.
Trait Implementations
impl<'a> Clone for AttributeText<'a>
[src]
fn clone(&self) -> AttributeText<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for AttributeText<'a>
[src]
impl<'a> Eq for AttributeText<'a>
[src]
impl<'a> From<ArrowType> for AttributeText<'a>
[src]
impl<'a> From<ClusterMode> for AttributeText<'a>
[src]
fn from(mode: ClusterMode) -> Self
[src]
impl<'a> From<Color<'a>> for AttributeText<'a>
[src]
impl<'a> From<ColorList<'a>> for AttributeText<'a>
[src]
impl<'a> From<CompassPoint> for AttributeText<'a>
[src]
fn from(compass: CompassPoint) -> Self
[src]
impl<'a> From<Direction> for AttributeText<'a>
[src]
impl<'a> From<EdgeStyle> for AttributeText<'a>
[src]
impl<'a> From<GraphStyle> for AttributeText<'a>
[src]
fn from(style: GraphStyle) -> Self
[src]
impl<'a> From<ImagePosition> for AttributeText<'a>
[src]
fn from(pos: ImagePosition) -> Self
[src]
impl<'a> From<ImageScale> for AttributeText<'a>
[src]
fn from(scale: ImageScale) -> Self
[src]
impl<'a> From<LabelJustification> for AttributeText<'a>
[src]
fn from(label_justification: LabelJustification) -> Self
[src]
impl<'a> From<LabelLocation> for AttributeText<'a>
[src]
fn from(label_location: LabelLocation) -> Self
[src]
impl<'a> From<NodeStyle> for AttributeText<'a>
[src]
impl<'a> From<Ordering> for AttributeText<'a>
[src]
impl<'a> From<OutputMode> for AttributeText<'a>
[src]
fn from(mode: OutputMode) -> Self
[src]
impl<'a> From<PackMode> for AttributeText<'a>
[src]
impl<'a> From<PageDirection> for AttributeText<'a>
[src]
fn from(page_direction: PageDirection) -> Self
[src]
impl<'a> From<Point> for AttributeText<'a>
[src]
impl<'a> From<PortPosition> for AttributeText<'a>
[src]
fn from(port_position: PortPosition) -> Self
[src]
impl<'a> From<RankDir> for AttributeText<'a>
[src]
impl<'a> From<Ratio> for AttributeText<'a>
[src]
impl<'a> From<Rectangle> for AttributeText<'a>
[src]
impl<'a> From<Shape> for AttributeText<'a>
[src]
impl<'a> From<SplineType> for AttributeText<'a>
[src]
fn from(spline_type: SplineType) -> Self
[src]
impl<'a> From<Splines> for AttributeText<'a>
[src]
impl<'a> From<Styles> for AttributeText<'a>
[src]
impl<'a> From<bool> for AttributeText<'a>
[src]
impl<'a> From<f32> for AttributeText<'a>
[src]
impl<'a> From<u32> for AttributeText<'a>
[src]
impl<'a> PartialEq<AttributeText<'a>> for AttributeText<'a>
[src]
fn eq(&self, other: &AttributeText<'a>) -> bool
[src]
fn ne(&self, other: &AttributeText<'a>) -> bool
[src]
impl<'a> StructuralEq for AttributeText<'a>
[src]
impl<'a> StructuralPartialEq for AttributeText<'a>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,