pub enum TreeNodeCb<T: Entity> {
Root(NodeCb<T>),
SubTreeRoot(NodeCb<T>),
Leaf(NodeCb<T>),
}
Expand description
Used for display tree data with NodeCb
.
We’re distinguishing the type of the nodes in order to perform further actions
depending on the selected node type.
Variants§
Trait Implementations§
Source§impl<T: Clone + Entity> Clone for TreeNodeCb<T>
impl<T: Clone + Entity> Clone for TreeNodeCb<T>
Source§fn clone(&self) -> TreeNodeCb<T>
fn clone(&self) -> TreeNodeCb<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> Freeze for TreeNodeCb<T>where
T: Freeze,
impl<T> RefUnwindSafe for TreeNodeCb<T>where
T: RefUnwindSafe,
impl<T> Send for TreeNodeCb<T>where
T: Send,
impl<T> Sync for TreeNodeCb<T>where
T: Sync,
impl<T> Unpin for TreeNodeCb<T>where
T: Unpin,
impl<T> UnwindSafe for TreeNodeCb<T>where
T: UnwindSafe,
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