pub enum NodeId {
Inner(InnerNodeId),
Leaf(LeafNodeId),
}
Variants§
Inner(InnerNodeId)
Leaf(LeafNodeId)
Implementations§
Source§impl NodeId
impl NodeId
pub fn leaf_id(&self) -> Option<LeafNodeId>
pub unsafe fn leaf_id_unchecked(&self) -> LeafNodeId
pub fn inner_id(&self) -> Option<InnerNodeId>
pub unsafe fn inner_id_unchecked(&self) -> InnerNodeId
Trait Implementations§
Source§impl From<InnerNodeId> for NodeId
impl From<InnerNodeId> for NodeId
Source§fn from(value: InnerNodeId) -> Self
fn from(value: InnerNodeId) -> Self
Converts to this type from the input type.
Source§impl From<LeafNodeId> for NodeId
impl From<LeafNodeId> for NodeId
Source§fn from(value: LeafNodeId) -> Self
fn from(value: LeafNodeId) -> Self
Converts to this type from the input type.
Source§impl Ord for NodeId
impl Ord for NodeId
Source§impl PartialOrd for NodeId
impl PartialOrd for NodeId
impl Copy for NodeId
impl Eq for NodeId
impl StructuralPartialEq for NodeId
Auto Trait Implementations§
impl Freeze for NodeId
impl RefUnwindSafe for NodeId
impl Send for NodeId
impl Sync for NodeId
impl Unpin for NodeId
impl UnwindSafe for NodeId
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