pub enum PrefixLinePart {
Text(String),
NodeGlyph,
}Expand description
A piece of a graph prefix line.
Variants§
Text(String)
Literal graph text.
NodeGlyph
Placeholder for the rendered node glyph.
Keeping the glyph as a slot lets callers cache prefix lines and fill in status-dependent glyphs later.
Trait Implementations§
Source§impl Clone for PrefixLinePart
impl Clone for PrefixLinePart
Source§fn clone(&self) -> PrefixLinePart
fn clone(&self) -> PrefixLinePart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrefixLinePart
impl Debug for PrefixLinePart
impl Eq for PrefixLinePart
Source§impl PartialEq for PrefixLinePart
impl PartialEq for PrefixLinePart
impl StructuralPartialEq for PrefixLinePart
Auto Trait Implementations§
impl Freeze for PrefixLinePart
impl RefUnwindSafe for PrefixLinePart
impl Send for PrefixLinePart
impl Sync for PrefixLinePart
impl Unpin for PrefixLinePart
impl UnsafeUnpin for PrefixLinePart
impl UnwindSafe for PrefixLinePart
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.