pub struct Leaf<BranchData: Debug, LeafData: Debug> { /* private fields */ }
Available on crate feature
split
only.Expand description
The node representing leaves in a split node tree.
Leaves are nodes which may not have children, as opposed to branches, which may have children.
LeafData
represents the custom data associated with leaf nodes.
Trait Implementations§
Source§impl<BranchData: Debug + Debug, LeafData: Debug + Debug> Debug for Leaf<BranchData, LeafData>
impl<BranchData: Debug + Debug, LeafData: Debug + Debug> Debug for Leaf<BranchData, LeafData>
Source§impl<BranchData, LeafData> LinkedNode for Leaf<BranchData, LeafData>
impl<BranchData, LeafData> LinkedNode for Leaf<BranchData, LeafData>
Source§fn preceding_siblings<'node>(
&'node self,
arena: &'node Arena<Self::Base>,
) -> PrecedingSiblings<'node, Self> ⓘwhere
Self: Sized,
fn preceding_siblings<'node>(
&'node self,
arena: &'node Arena<Self::Base>,
) -> PrecedingSiblings<'node, Self> ⓘwhere
Self: Sized,
Source§fn following_siblings<'node>(
&'node self,
arena: &'node Arena<Self::Base>,
) -> FollowingSiblings<'node, Self> ⓘwhere
Self: Sized,
fn following_siblings<'node>(
&'node self,
arena: &'node Arena<Self::Base>,
) -> FollowingSiblings<'node, Self> ⓘwhere
Self: Sized,
Source§impl<BranchData, LeafData> Node for Leaf<BranchData, LeafData>
impl<BranchData, LeafData> Node for Leaf<BranchData, LeafData>
Source§type DataRef<'data> = &'data LeafData
where
Self: 'data
type DataRef<'data> = &'data LeafData where Self: 'data
Source§type DataRefMut<'data> = &'data mut LeafData
where
Self: 'data
type DataRefMut<'data> = &'data mut LeafData where Self: 'data
Source§fn data_mut(&mut self) -> &mut LeafData
fn data_mut(&mut self) -> &mut LeafData
Returns a mutable reference to the data associated with this node.
Source§impl<'node, BranchData, LeafData> TryFrom<&'node SplitNode<BranchData, LeafData>> for &'node Leaf<BranchData, LeafData>
impl<'node, BranchData, LeafData> TryFrom<&'node SplitNode<BranchData, LeafData>> for &'node Leaf<BranchData, LeafData>
Source§impl<'node, BranchData, LeafData> TryFrom<&'node mut SplitNode<BranchData, LeafData>> for &'node mut Leaf<BranchData, LeafData>
impl<'node, BranchData, LeafData> TryFrom<&'node mut SplitNode<BranchData, LeafData>> for &'node mut Leaf<BranchData, LeafData>
impl<BranchData, LeafData> Eq for Leaf<BranchData, LeafData>
Auto Trait Implementations§
impl<BranchData, LeafData> Freeze for Leaf<BranchData, LeafData>where
LeafData: Freeze,
impl<BranchData, LeafData> RefUnwindSafe for Leaf<BranchData, LeafData>where
LeafData: RefUnwindSafe,
BranchData: RefUnwindSafe,
impl<BranchData, LeafData> Send for Leaf<BranchData, LeafData>
impl<BranchData, LeafData> Sync for Leaf<BranchData, LeafData>
impl<BranchData, LeafData> Unpin for Leaf<BranchData, LeafData>
impl<BranchData, LeafData> UnwindSafe for Leaf<BranchData, LeafData>where
LeafData: UnwindSafe,
BranchData: 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