Struct im_pathtree::TreeNode
source · pub struct TreeNode<T: PathTreeTypes> {
pub id: NodeId,
pub parent_id: Option<NodeId>,
pub path_segment: <T as PathTreeTypes>::PathSegment,
pub node: Node<T>,
}
Expand description
Node in the tree.
Fields§
§id: NodeId
Identifier for direct lookup.
parent_id: Option<NodeId>
The parent node.
Only the root node has no parent.
This must always be an inner node, but we cannot express this in the type system.
path_segment: <T as PathTreeTypes>::PathSegment
RootPath segment for addressing.
Must be empty for the root node.
node: Node<T>
The actual content of this node.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for TreeNode<T>where <T as PathTreeTypes>::InnerValue: RefUnwindSafe, <T as PathTreeTypes>::LeafValue: RefUnwindSafe, <T as PathTreeTypes>::PathSegment: RefUnwindSafe,
impl<T> Send for TreeNode<T>where <T as PathTreeTypes>::InnerValue: Send, <T as PathTreeTypes>::LeafValue: Send, <T as PathTreeTypes>::PathSegment: Send,
impl<T> Sync for TreeNode<T>where <T as PathTreeTypes>::InnerValue: Sync, <T as PathTreeTypes>::LeafValue: Sync, <T as PathTreeTypes>::PathSegment: Sync,
impl<T> Unpin for TreeNode<T>where <T as PathTreeTypes>::InnerValue: Unpin, <T as PathTreeTypes>::LeafValue: Unpin, <T as PathTreeTypes>::PathSegment: Unpin,
impl<T> UnwindSafe for TreeNode<T>where <T as PathTreeTypes>::InnerValue: UnwindSafe, <T as PathTreeTypes>::LeafValue: UnwindSafe, <T as PathTreeTypes>::PathSegment: 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