Struct generational_arena_tree::split::Leaf
source · 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>
§type Token = Token<Leaf<BranchData, LeafData>>
where
Self: Sized
type Token = Token<Leaf<BranchData, LeafData>> where Self: Sized
The token associated with this type of node.
§type DataRef<'data> = &'data LeafData
where
Self: 'data
type DataRef<'data> = &'data LeafData where Self: 'data
§type DataRefMut<'data> = &'data mut LeafData
where
Self: 'data
type DataRefMut<'data> = &'data mut LeafData where Self: 'data
source§fn data(&self) -> Self::DataRef<'_>
fn data(&self) -> Self::DataRef<'_>
Returns a reference to the data associated with this node.
source§fn data_mut(&mut self) -> Self::DataRefMut<'_>
fn data_mut(&mut self) -> Self::DataRefMut<'_>
Returns a mutable reference to the data associated with this node.
source§impl<BranchData, LeafData> PartialEq for Leaf<BranchData, LeafData>
impl<BranchData, LeafData> PartialEq for Leaf<BranchData, LeafData>
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> RefUnwindSafe for Leaf<BranchData, LeafData>where
BranchData: RefUnwindSafe,
LeafData: 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
BranchData: UnwindSafe,
LeafData: 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