Enum im_pathtree::Node
source · pub enum Node<T>where
T: PathTreeTypes,{
Inner(InnerNode<T>),
Leaf(LeafNode<<T as PathTreeTypes>::LeafValue>),
}
Variants§
Implementations§
source§impl<T> Node<T>where
T: PathTreeTypes,
impl<T> Node<T>where T: PathTreeTypes,
pub fn inner_value(&self) -> Option<&T::InnerValue>
pub fn leaf_value(&self) -> Option<&T::LeafValue>
source§impl<T> Node<T>where
T: PathTreeTypes,
impl<T> Node<T>where T: PathTreeTypes,
Trait Implementations§
source§impl<T> From<LeafNode<<T as PathTreeTypes>::LeafValue>> for Node<T>where
T: PathTreeTypes,
impl<T> From<LeafNode<<T as PathTreeTypes>::LeafValue>> for Node<T>where T: PathTreeTypes,
Auto Trait Implementations§
impl<T> RefUnwindSafe for Node<T>where <T as PathTreeTypes>::InnerValue: RefUnwindSafe, <T as PathTreeTypes>::LeafValue: RefUnwindSafe,
impl<T> Send for Node<T>where <T as PathTreeTypes>::InnerValue: Send, <T as PathTreeTypes>::LeafValue: Send,
impl<T> Sync for Node<T>where <T as PathTreeTypes>::InnerValue: Sync, <T as PathTreeTypes>::LeafValue: Sync,
impl<T> Unpin for Node<T>where <T as PathTreeTypes>::InnerValue: Unpin, <T as PathTreeTypes>::LeafValue: Unpin,
impl<T> UnwindSafe for Node<T>where <T as PathTreeTypes>::InnerValue: UnwindSafe, <T as PathTreeTypes>::LeafValue: 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