pub enum PrefixLineKind {
Separator,
PreNode,
Node,
PostNode,
Link,
Term,
Ancestry,
PostAncestry,
}Expand description
The semantic role of a prefix line.
The text-output stage can use this to decide where messages should attach, which lines may repeat, and which lines are meaningful for consumers that do not render plain text.
Variants§
Separator
A blank line separating disconnected one-line rows.
PreNode
A repeatable line before the node line.
Node
The line containing the rendered node glyph.
PostNode
A repeatable line after the node line and before edge links.
Link
A line connecting the node to parent or ancestor columns.
Term
A line terminating an anonymous parent edge.
Ancestry
A line continuing ancestry or parent edges.
PostAncestry
A repeatable line after ancestry continuation.
Implementations§
Source§impl PrefixLineKind
impl PrefixLineKind
Sourcepub fn is_repeatable(self) -> bool
pub fn is_repeatable(self) -> bool
True if this line kind can be repeated to carry additional message lines.
Trait Implementations§
Source§impl Clone for PrefixLineKind
impl Clone for PrefixLineKind
impl Copy for PrefixLineKind
Source§impl Debug for PrefixLineKind
impl Debug for PrefixLineKind
impl Eq for PrefixLineKind
Source§impl PartialEq for PrefixLineKind
impl PartialEq for PrefixLineKind
impl StructuralPartialEq for PrefixLineKind
Auto Trait Implementations§
impl Forget for PrefixLineKind
impl Freeze for PrefixLineKind
impl Move for PrefixLineKind
impl RefUnwindSafe for PrefixLineKind
impl Send for PrefixLineKind
impl Sync for PrefixLineKind
impl Unpin for PrefixLineKind
impl UnsafeUnpin for PrefixLineKind
impl UnwindSafe for PrefixLineKind
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