pub struct Node<T, K> { /* private fields */ }Expand description
A node of a tree (Node<TObject, TKey>): an item, its key, its parent and its children, as
TransformToTree builds them. Nodes are held in Rc.
Deviation (DEVIATIONS.md, DynamicData): a node holds its parent weakly, so that a parent and its children (which it holds) do not keep each other alive; the parent of a node is the node of the tree that is its parent, which the tree keeps.
Implementations§
Source§impl<T: Clone + 'static, K: Eq + Hash + Clone + 'static> Node<T, K>
impl<T: Clone + 'static, K: Eq + Hash + Clone + 'static> Node<T, K>
Trait Implementations§
impl<T, K: Eq> Eq for Node<T, K>
Auto Trait Implementations§
impl<T, K> !Freeze for Node<T, K>
impl<T, K> !RefUnwindSafe for Node<T, K>
impl<T, K> !Send for Node<T, K>
impl<T, K> !Sync for Node<T, K>
impl<T, K> !UnwindSafe for Node<T, K>
impl<T, K> Unpin for Node<T, K>
impl<T, K> UnsafeUnpin for Node<T, K>where
SourceCache<Rc<Node<T, K>>, K>: UnsafeUnpin,
ObservableCache<Rc<Node<T, K>>, K>: UnsafeUnpin,
T: UnsafeUnpin,
K: UnsafeUnpin,
RefCell<Option<Weak<Node<T, K>>>>: UnsafeUnpin,
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