pub struct Node<K: MoveType, V: MoveType> {
pub prev: Option<K>,
pub next: Option<K>,
pub value: V,
}
Fields§
§prev: Option<K>
the previous key
next: Option<K>
the next key
value: V
the value being stored
Implementations§
Trait Implementations§
Source§impl<'de, K: MoveType, V: MoveType> Deserialize<'de> for Node<K, V>
impl<'de, K: MoveType, V: MoveType> Deserialize<'de> for Node<K, V>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<K: MoveType, V: MoveType> MoveStruct for Node<K, V>
impl<K: MoveType, V: MoveType> MoveStruct for Node<K, V>
type StructTag = NodeTypeTag<K, V>
Source§impl<K: MoveType, V: MoveType> MoveType for Node<K, V>
impl<K: MoveType, V: MoveType> MoveType for Node<K, V>
Source§impl<K: MoveType, V: MoveType> StaticModule for Node<K, V>
impl<K: MoveType, V: MoveType> StaticModule for Node<K, V>
fn module() -> Identifier
Source§impl<K: MoveType, V: MoveType> StaticName for Node<K, V>
impl<K: MoveType, V: MoveType> StaticName for Node<K, V>
fn name() -> Identifier
Source§impl<K: MoveType + StaticTypeTag, V: MoveType + StaticTypeTag> StaticTypeParams for Node<K, V>
impl<K: MoveType + StaticTypeTag, V: MoveType + StaticTypeTag> StaticTypeParams for Node<K, V>
fn type_params() -> Vec<TypeTag>
impl<K: Eq + MoveType, V: Eq + MoveType> Eq for Node<K, V>
impl<K: MoveType, V: MoveType> StructuralPartialEq for Node<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for Node<K, V>where
V: Freeze,
impl<K, V> RefUnwindSafe for Node<K, V>where
V: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, V> Send for Node<K, V>
impl<K, V> Sync for Node<K, V>
impl<K, V> Unpin for Node<K, V>
impl<K, V> UnwindSafe for Node<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more