Struct im_pathtree::TreeNode
source · pub struct TreeNode<T: PathTreeTypes> {
pub id: NodeId,
pub parent: Option<HalfEdge<T>>,
pub node: Node<T>,
}
Expand description
Immutable node in the tree.
Fields§
§id: NodeId
Identifier for direct lookup.
parent: Option<HalfEdge<T>>
Link to the parent node.
Must be None
for the root node and Some
for all other nodes.
node: Node<T>
The actual content of this node.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TreeNode<T>where
<T as PathTreeTypes>::InnerValue: Freeze,
<T as PathTreeTypes>::LeafValue: Freeze,
<T as PathTreeTypes>::PathSegment: Freeze,
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: Sync + Send,
impl<T> Sync for TreeNode<T>where
<T as PathTreeTypes>::InnerValue: Sync,
<T as PathTreeTypes>::LeafValue: Sync,
<T as PathTreeTypes>::PathSegment: Sync + Send,
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 + RefUnwindSafe,
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