pub enum OutputMode {
BreadthFirst,
NodesFirst,
EdgesFirst,
}
Expand description
These specify the order in which nodes and edges are drawn in concrete output.
The default “breadthfirst” is the simplest, but when the graph layout does not avoid edge-node overlap, this mode will sometimes have edges drawn over nodes and sometimes on top of nodes.
If the mode “nodesfirst” is chosen, all nodes are drawn first, followed by the edges. This guarantees an edge-node overlap will not be mistaken for an edge ending at a node.
On the other hand, usually for aesthetic reasons, it may be desirable that all edges appear beneath nodes, even if the resulting drawing is ambiguous. This can be achieved by choosing “edgesfirst”.
Variants§
Trait Implementations§
Source§impl<'a> DotString<'a> for OutputMode
impl<'a> DotString<'a> for OutputMode
fn dot_string(&self) -> Cow<'a, str>
Source§impl<'a> From<OutputMode> for AttributeText<'a>
impl<'a> From<OutputMode> for AttributeText<'a>
Source§fn from(mode: OutputMode) -> Self
fn from(mode: OutputMode) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OutputMode
impl RefUnwindSafe for OutputMode
impl Send for OutputMode
impl Sync for OutputMode
impl Unpin for OutputMode
impl UnwindSafe for OutputMode
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