pub enum LabelLocation {
Top,
Center,
Bottom,
}Expand description
Vertical placement of labels for nodes, root graphs and clusters.
For graphs and clusters, only labelloc=t and labelloc=b are allowed, corresponding to placement at the top and bottom, respectively.
By default, root graph labels go on the bottom and cluster labels go on the top.
Note that a subgraph inherits attributes from its parent. Thus, if the root graph sets labelloc=b, the subgraph inherits this value.
For nodes, this attribute is used only when the height of the node is larger than the height of its label.
If labelloc=t, labelloc=c, labelloc=b, the label is aligned with the top, centered, or aligned with the bottom of the node, respectively.
By default, the label is vertically centered.
Variants§
Trait Implementations§
Source§impl<'a> DotString<'a> for LabelLocation
impl<'a> DotString<'a> for LabelLocation
fn dot_string(&self) -> Cow<'a, str>
Source§impl<'a> From<LabelLocation> for AttributeText<'a>
impl<'a> From<LabelLocation> for AttributeText<'a>
Source§fn from(label_location: LabelLocation) -> Self
fn from(label_location: LabelLocation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LabelLocation
impl RefUnwindSafe for LabelLocation
impl Send for LabelLocation
impl Sync for LabelLocation
impl Unpin for LabelLocation
impl UnsafeUnpin for LabelLocation
impl UnwindSafe for LabelLocation
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