pub struct Item<K, V> {
pub key: K,
pub value: V,
}Expand description
Item is a struct that combines a key and a value.
Fields§
§key: K§value: VImplementations§
Source§impl Item<ObjectKeyV54, ObjectValueV54>
impl Item<ObjectKeyV54, ObjectValueV54>
pub fn is_tombstone(&self) -> bool
Trait Implementations§
Source§impl<'de, K, V> Deserialize<'de> for Item<K, V>where
K: Deserialize<'de>,
V: Deserialize<'de>,
impl<'de, K, V> Deserialize<'de> for Item<K, V>where
K: Deserialize<'de>,
V: Deserialize<'de>,
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: TypeFingerprint, V: TypeFingerprint> TypeFingerprint for Item<K, V>
impl<K: TypeFingerprint, V: TypeFingerprint> TypeFingerprint for Item<K, V>
fn fingerprint() -> String
impl<K: Copy, V: Copy> Copy for Item<K, V>
impl<K: Eq, V: Eq> Eq for Item<K, V>
impl<K, V> StructuralPartialEq for Item<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for Item<K, V>
impl<K, V> RefUnwindSafe for Item<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Item<K, V>
impl<K, V> Sync for Item<K, V>
impl<K, V> Unpin for Item<K, V>
impl<K, V> UnsafeUnpin for Item<K, V>where
K: UnsafeUnpin,
V: UnsafeUnpin,
impl<K, V> UnwindSafe for Item<K, V>where
K: UnwindSafe,
V: 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,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
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