Enum dmntk_common::AsciiNode
source · pub enum AsciiNode {
Node(AsciiLine, Vec<AsciiNode>),
Leaf(Vec<AsciiLine>),
}
Expand description
Types of nodes in the coloured ASCII tree.
Variants§
Node(AsciiLine, Vec<AsciiNode>)
Intermediary (or root) node in the tree (always has child nodes).
Leaf(Vec<AsciiLine>)
Node being the leaf in the tree (has no child nodes).
Implementations§
source§impl AsciiNode
impl AsciiNode
pub fn leaf_builder() -> AsciiLeafBuilder
pub fn node_builder(line: AsciiLine) -> AsciiNodeBuilder
Auto Trait Implementations§
impl Freeze for AsciiNode
impl RefUnwindSafe for AsciiNode
impl Send for AsciiNode
impl Sync for AsciiNode
impl Unpin for AsciiNode
impl UnwindSafe for AsciiNode
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