pub struct SimpleTreeBackend;Expand description
Simple tree view backend.
Nodes can only be populated manually.
Trait Implementations§
Source§impl TreeBackend<(), (), (), ()> for SimpleTreeBackend
impl TreeBackend<(), (), (), ()> for SimpleTreeBackend
Source§fn tree_view(context: ContextT) -> TreeView<Self, ContextT, ErrorT, IdT, DataT>
fn tree_view(context: ContextT) -> TreeView<Self, ContextT, ErrorT, IdT, DataT>
Create a tree view with this backend.
Source§fn tree_model(
context: ContextT,
) -> TreeModel<Self, ContextT, ErrorT, IdT, DataT>
fn tree_model( context: ContextT, ) -> TreeModel<Self, ContextT, ErrorT, IdT, DataT>
Create a tree model with this backend.
Source§fn symbol(
node: &Node<Self, ContextT, ErrorT, IdT, DataT>,
context: ContextT,
) -> Symbol<'_>
fn symbol( node: &Node<Self, ContextT, ErrorT, IdT, DataT>, context: ContextT, ) -> Symbol<'_>
Get a node’s symbol. Read more
Source§fn roots(
context: ContextT,
) -> Result<NodeList<Self, ContextT, ErrorT, IdT, DataT>, ErrorT>
fn roots( context: ContextT, ) -> Result<NodeList<Self, ContextT, ErrorT, IdT, DataT>, ErrorT>
Get the root nodes. Read more
Source§fn populate(
node: &mut Node<Self, ContextT, ErrorT, IdT, DataT>,
context: ContextT,
) -> Result<(), ErrorT>
fn populate( node: &mut Node<Self, ContextT, ErrorT, IdT, DataT>, context: ContextT, ) -> Result<(), ErrorT>
Populate a node’s children. Read more
Source§fn data(
node: &mut Node<Self, ContextT, ErrorT, IdT, DataT>,
context: ContextT,
) -> Result<Option<(DataT, bool)>, ErrorT>
fn data( node: &mut Node<Self, ContextT, ErrorT, IdT, DataT>, context: ContextT, ) -> Result<Option<(DataT, bool)>, ErrorT>
Get a node’s data. Read more
Source§fn handle_selection_changed(cursive: &mut Cursive)
fn handle_selection_changed(cursive: &mut Cursive)
Source§fn handle_error(cursive: &mut Cursive, error: ErrorT)
fn handle_error(cursive: &mut Cursive, error: ErrorT)
Called when other backend functions return Err.
Auto Trait Implementations§
impl Freeze for SimpleTreeBackend
impl RefUnwindSafe for SimpleTreeBackend
impl Send for SimpleTreeBackend
impl Sync for SimpleTreeBackend
impl Unpin for SimpleTreeBackend
impl UnsafeUnpin for SimpleTreeBackend
impl UnwindSafe for SimpleTreeBackend
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