Struct im_pathtree::ParentChildTreeNode
source · pub struct ParentChildTreeNode<T>where
T: PathTreeTypes,{
pub parent_node: Option<Arc<TreeNode<T>>>,
pub child_node: Arc<TreeNode<T>>,
}
Expand description
Return type of mutating tree operations.
Updating an immutable node in the tree requires to update its parent node.
Fields§
§parent_node: Option<Arc<TreeNode<T>>>
§child_node: Arc<TreeNode<T>>
Trait Implementations§
source§impl<T> Clone for ParentChildTreeNode<T>where
T: PathTreeTypes + Clone,
impl<T> Clone for ParentChildTreeNode<T>where
T: PathTreeTypes + Clone,
source§fn clone(&self) -> ParentChildTreeNode<T>
fn clone(&self) -> ParentChildTreeNode<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> RefUnwindSafe for ParentChildTreeNode<T>where
<T as PathTreeTypes>::InnerValue: RefUnwindSafe,
<T as PathTreeTypes>::LeafValue: RefUnwindSafe,
<T as PathTreeTypes>::PathSegment: RefUnwindSafe,
impl<T> Send for ParentChildTreeNode<T>where
<T as PathTreeTypes>::InnerValue: Send + Sync,
<T as PathTreeTypes>::LeafValue: Send + Sync,
<T as PathTreeTypes>::PathSegment: Send + Sync,
impl<T> Sync for ParentChildTreeNode<T>where
<T as PathTreeTypes>::InnerValue: Send + Sync,
<T as PathTreeTypes>::LeafValue: Send + Sync,
<T as PathTreeTypes>::PathSegment: Send + Sync,
impl<T> Unpin for ParentChildTreeNode<T>
impl<T> UnwindSafe for ParentChildTreeNode<T>where
<T as PathTreeTypes>::InnerValue: RefUnwindSafe,
<T as PathTreeTypes>::LeafValue: RefUnwindSafe,
<T as PathTreeTypes>::PathSegment: 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