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
pub fn children(&self) -> impl Iterator<Item = NodeId> + '_
pub fn count_children_recursively<'a>(&'a self, tree: &'a PathTree<T>) -> usize
Trait Implementations§
source§impl<T> Clone for InnerNode<T>where
T: PathTreeTypes + Clone,
T::PathSegment: Clone,
impl<T> Clone for InnerNode<T>where T: PathTreeTypes + Clone, T::PathSegment: Clone,
source§impl<T> Debug for InnerNode<T>where
T: PathTreeTypes + Debug,
T::PathSegment: Debug,
impl<T> Debug for InnerNode<T>where T: PathTreeTypes + Debug, T::PathSegment: Debug,
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>where <T as PathTreeTypes>::InnerValue: Send, <T as PathTreeTypes>::PathSegment: Send + Sync,
impl<T> Sync for InnerNode<T>where <T as PathTreeTypes>::InnerValue: Sync, <T as PathTreeTypes>::PathSegment: Send + Sync,
impl<T> Unpin for InnerNode<T>where <T as PathTreeTypes>::InnerValue: Unpin, <T as PathTreeTypes>::PathSegment: Unpin,
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