Struct bonsaidb_core::schema::view::map::MappedValue
source · [−]pub struct MappedValue<K: for<'a> Key<'a>, V> {
pub key: K,
pub value: V,
}Expand description
A key value pair
Fields
key: KThe key responsible for generating the value
value: VThe value generated by the View
Implementations
Trait Implementations
impl<K: PartialEq + for<'a> Key<'a>, V: PartialEq> PartialEq<MappedValue<K, V>> for MappedValue<K, V>
impl<K: PartialEq + for<'a> Key<'a>, V: PartialEq> PartialEq<MappedValue<K, V>> for MappedValue<K, V>
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl<K, V> RefUnwindSafe for MappedValue<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for MappedValue<K, V> where
V: Send,
impl<K, V> Sync for MappedValue<K, V> where
V: Sync,
impl<K, V> Unpin for MappedValue<K, V> where
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for MappedValue<K, V> where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more