Struct im_pathtree::InnerNode
source · pub struct InnerNode<T>where
T: PathTreeTypes,{
pub value: <T as PathTreeTypes>::InnerValue,
/* private fields */
}
Expand description
Intrinsic data of an inner node.
Fields§
§value: <T as PathTreeTypes>::InnerValue
Implementations§
source§impl<T> InnerNode<T>where
T: PathTreeTypes,
impl<T> InnerNode<T>where
T: PathTreeTypes,
sourcepub fn new(value: <T as PathTreeTypes>::InnerValue) -> Self
pub fn new(value: <T as PathTreeTypes>::InnerValue) -> Self
Construct an empty inner node with no children
sourcepub fn children(&self) -> impl Iterator<Item = HalfEdgeRef<'_, T>> + '_
pub fn children(&self) -> impl Iterator<Item = HalfEdgeRef<'_, T>> + '_
Edges to children of this node
In arbitrary but stable ordering.
sourcepub fn count_descendants<'a>(&'a self, tree: &'a PathTree<T>) -> usize
pub fn count_descendants<'a>(&'a self, tree: &'a PathTree<T>) -> usize
Number of descendants of this node
Recursively counts all descendants of this node.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for InnerNode<T>where
<T as PathTreeTypes>::InnerValue: RefUnwindSafe,
<T as PathTreeTypes>::PathSegment: RefUnwindSafe,
impl<T> Send for InnerNode<T>
impl<T> Sync for InnerNode<T>
impl<T> Unpin for InnerNode<T>
impl<T> UnwindSafe for InnerNode<T>where
<T as PathTreeTypes>::InnerValue: 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