pub struct LeafDeque<BranchData: Debug, LeafData: Debug> { /* private fields */ }
Available on crate features
deque
and 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 LeafDeque<BranchData, LeafData>
impl<BranchData: Debug + Debug, LeafData: Debug + Debug> Debug for LeafDeque<BranchData, LeafData>
Source§impl<BranchData, LeafData> Node for LeafDeque<BranchData, LeafData>
impl<BranchData, LeafData> Node for LeafDeque<BranchData, LeafData>
Source§type Token = Token<LeafDeque<BranchData, LeafData>>
type Token = Token<LeafDeque<BranchData, LeafData>>
The token associated with this type of node.
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 SplitNodeDeque<BranchData, LeafData>> for &'node LeafDeque<BranchData, LeafData>
impl<'node, BranchData, LeafData> TryFrom<&'node SplitNodeDeque<BranchData, LeafData>> for &'node LeafDeque<BranchData, LeafData>
Source§type Error = &'node SplitNodeDeque<BranchData, LeafData>
type Error = &'node SplitNodeDeque<BranchData, LeafData>
The type returned in the event of a conversion error.
Source§impl<'node, BranchData, LeafData> TryFrom<&'node mut SplitNodeDeque<BranchData, LeafData>> for &'node mut LeafDeque<BranchData, LeafData>
impl<'node, BranchData, LeafData> TryFrom<&'node mut SplitNodeDeque<BranchData, LeafData>> for &'node mut LeafDeque<BranchData, LeafData>
Source§type Error = &'node mut SplitNodeDeque<BranchData, LeafData>
type Error = &'node mut SplitNodeDeque<BranchData, LeafData>
The type returned in the event of a conversion error.
impl<BranchData, LeafData> Eq for LeafDeque<BranchData, LeafData>
Auto Trait Implementations§
impl<BranchData, LeafData> Freeze for LeafDeque<BranchData, LeafData>where
LeafData: Freeze,
impl<BranchData, LeafData> RefUnwindSafe for LeafDeque<BranchData, LeafData>where
LeafData: RefUnwindSafe,
BranchData: RefUnwindSafe,
impl<BranchData, LeafData> Send for LeafDeque<BranchData, LeafData>
impl<BranchData, LeafData> Sync for LeafDeque<BranchData, LeafData>
impl<BranchData, LeafData> Unpin for LeafDeque<BranchData, LeafData>
impl<BranchData, LeafData> UnwindSafe for LeafDeque<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