Struct im_pathtree::RemovedSubtree
source · pub struct RemovedSubtree<T>where
T: PathTreeTypes,{
pub parent_node: Arc<TreeNode<T>>,
pub child_path_segment: T::PathSegment,
pub removed_subtree: PathTree<T>,
}
Expand description
Return type when removing a node from the tree.
Fields§
§parent_node: Arc<TreeNode<T>>
New parent node.
Updated parent node of the removed node that remains in the tree.
child_path_segment: T::PathSegment
Child path segment.
Path segment between the parent node and its former child node, which has become the root node of the removed subtree.
removed_subtree: PathTree<T>
Removed subtree.
A new tree built from the removed node and all its descendants.
Trait Implementations§
source§impl<T> Clone for RemovedSubtree<T>
impl<T> Clone for RemovedSubtree<T>
source§fn clone(&self) -> RemovedSubtree<T>
fn clone(&self) -> RemovedSubtree<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 moresource§impl<T> Debug for RemovedSubtree<T>
impl<T> Debug for RemovedSubtree<T>
Auto Trait Implementations§
impl<T> Freeze for RemovedSubtree<T>where
<T as PathTreeTypes>::PathSegment: Freeze,
<T as PathTreeTypes>::NodeId: Freeze,
<T as PathTreeTypes>::NewNodeId: Freeze,
impl<T> RefUnwindSafe for RemovedSubtree<T>where
<T as PathTreeTypes>::PathSegment: RefUnwindSafe,
<T as PathTreeTypes>::NodeId: RefUnwindSafe,
<T as PathTreeTypes>::NewNodeId: RefUnwindSafe,
T: RefUnwindSafe,
<T as PathTreeTypes>::InnerValue: RefUnwindSafe,
<T as PathTreeTypes>::LeafValue: RefUnwindSafe,
impl<T> Send for RemovedSubtree<T>where
<T as PathTreeTypes>::PathSegment: Send + Sync,
<T as PathTreeTypes>::NodeId: Send + Sync,
<T as PathTreeTypes>::NewNodeId: Send,
T: Send,
<T as PathTreeTypes>::InnerValue: Sync + Send,
<T as PathTreeTypes>::LeafValue: Sync + Send,
impl<T> Sync for RemovedSubtree<T>where
<T as PathTreeTypes>::PathSegment: Sync + Send,
<T as PathTreeTypes>::NodeId: Sync + Send,
<T as PathTreeTypes>::NewNodeId: Sync,
T: Sync,
<T as PathTreeTypes>::InnerValue: Sync + Send,
<T as PathTreeTypes>::LeafValue: Sync + Send,
impl<T> Unpin for RemovedSubtree<T>where
<T as PathTreeTypes>::PathSegment: Unpin,
<T as PathTreeTypes>::NodeId: Unpin,
<T as PathTreeTypes>::NewNodeId: Unpin,
T: Unpin,
impl<T> UnwindSafe for RemovedSubtree<T>where
<T as PathTreeTypes>::PathSegment: UnwindSafe + RefUnwindSafe,
<T as PathTreeTypes>::NodeId: UnwindSafe + RefUnwindSafe,
<T as PathTreeTypes>::NewNodeId: UnwindSafe,
T: UnwindSafe,
<T as PathTreeTypes>::InnerValue: RefUnwindSafe,
<T as PathTreeTypes>::LeafValue: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more