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§type Context = ()
type Context = ()
A context is provided as an argument to some of the trait functions. Read more
Source§fn tree_model(context: Self::Context) -> TreeModel<Self>
fn tree_model(context: Self::Context) -> TreeModel<Self>
Create a tree model with this backend.
Source§fn symbol(node: &Node<Self>, context: Self::Context) -> Symbol<'_>
fn symbol(node: &Node<Self>, context: Self::Context) -> Symbol<'_>
Get a node’s symbol. Read more
Source§fn roots(context: Self::Context) -> Result<NodeList<Self>, Self::Error>
fn roots(context: Self::Context) -> Result<NodeList<Self>, Self::Error>
Get the root nodes. Read more
Source§fn populate(
node: &mut Node<Self>,
context: Self::Context,
) -> Result<(), Self::Error>
fn populate( node: &mut Node<Self>, context: Self::Context, ) -> Result<(), Self::Error>
Populate a node’s children. Read more
Source§fn data(
node: &mut Node<Self>,
context: Self::Context,
) -> Result<Option<(Self::Data, bool)>, Self::Error>
fn data( node: &mut Node<Self>, context: Self::Context, ) -> Result<Option<(Self::Data, bool)>, Self::Error>
Get a node’s data. Read more
Source§fn handle_selection_changed(cursive: &mut Cursive)
fn handle_selection_changed(cursive: &mut Cursive)
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