pub struct DisplayableTree<'a, 's, 't> {
    pub app_state: Option<&'a AppState>,
    pub tree: &'t Tree,
    pub skin: &'s StyleMap,
    pub area: Area,
    pub in_app: bool,
    pub ext_colors: &'s ExtColorMap,
}
Expand description

A tree wrapper which can be used either

  • to write on the screen in the application,
  • or to write in a file or an exported string. Using it in the application (with in_app true) means that
  • the selection is drawn
  • a scrollbar may be drawn
  • the empty lines will be erased

Fields

app_state: Option<&'a AppState>tree: &'t Treeskin: &'s StyleMaparea: Areain_app: boolext_colors: &'s ExtColorMap

Implementations

if in app, extend the background till the end of screen row

write the whole tree on the given W

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.