pub struct ValueNode<K, V> { /* private fields */ }
Expand description
A generic node for the KeyNodeList
.
ValueNode
can hold any kind of value.
Implementations§
Trait Implementations§
Source§impl<K, V> Node for ValueNode<K, V>
impl<K, V> Node for ValueNode<K, V>
Source§fn prev(&self) -> Option<&Self::Key>
fn prev(&self) -> Option<&Self::Key>
Returns a reference to the previous key of the current node,
or returns
None
if the current node is the first node in the list.Source§fn next(&self) -> Option<&Self::Key>
fn next(&self) -> Option<&Self::Key>
Returns a reference to the next key of the current node,
or returns
None
if the current node is the last node in the list.Source§impl<K: Ord, V: Ord> Ord for ValueNode<K, V>
impl<K: Ord, V: Ord> Ord for ValueNode<K, V>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<K: PartialOrd, V: PartialOrd> PartialOrd for ValueNode<K, V>
impl<K: PartialOrd, V: PartialOrd> PartialOrd for ValueNode<K, V>
impl<K: Copy, V: Copy> Copy for ValueNode<K, V>
impl<K: Eq, V: Eq> Eq for ValueNode<K, V>
impl<K, V> StructuralPartialEq for ValueNode<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for ValueNode<K, V>
impl<K, V> RefUnwindSafe for ValueNode<K, V>where
V: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, V> Send for ValueNode<K, V>
impl<K, V> Sync for ValueNode<K, V>
impl<K, V> Unpin for ValueNode<K, V>
impl<K, V> UnwindSafe for ValueNode<K, V>where
V: UnwindSafe,
K: 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