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 const fn new(value: <T as PathTreeTypes>::InnerValue) -> Self
pub const 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§
Auto Trait Implementations§
impl<T> RefUnwindSafe for InnerNode<T>where <T as PathTreeTypes>::InnerValue: RefUnwindSafe,
impl<T> Send for InnerNode<T>where <T as PathTreeTypes>::InnerValue: Send,
impl<T> Sync for InnerNode<T>where <T as PathTreeTypes>::InnerValue: Sync,
impl<T> Unpin for InnerNode<T>where <T as PathTreeTypes>::InnerValue: Unpin,
impl<T> UnwindSafe for InnerNode<T>where <T as PathTreeTypes>::InnerValue: UnwindSafe,
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