pub struct TreeLine {
pub prefix: String,
pub name: String,
pub annotation: String,
}Expand description
One line of tree output, pre-flattened for the template.
The template for a tree is annoying to write directly in Jinja
(indentation, prefix characters, etc.), so we flatten the tree to
a list of (indent, name, annotation) triples here.
Fields§
§prefix: StringIndent prefix (e.g. " │ ├─ ").
name: StringThe node’s display name (basename for non-root nodes).
annotation: StringA dim-styled annotation shown after the name (size, link target, truncation count). Empty when the node has nothing extra to say.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeLine
impl RefUnwindSafe for TreeLine
impl Send for TreeLine
impl Sync for TreeLine
impl Unpin for TreeLine
impl UnsafeUnpin for TreeLine
impl UnwindSafe for TreeLine
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