pub struct MappedValue<K, V> where
K: for<'a> Key<'a>, {
pub key: K,
pub value: V,
}
Expand description
A key value pair
Fields
key: K
The key responsible for generating the value
value: V
The value generated by the View
Implementations
Returns a new instance with the key/value pair.
Trait Implementations
impl<K, V> PartialEq<MappedValue<K, V>> for MappedValue<K, V> where
K: PartialEq<K> + for<'a> Key<'a>,
V: PartialEq<V>,
impl<K, V> PartialEq<MappedValue<K, V>> for MappedValue<K, V> where
K: PartialEq<K> + for<'a> Key<'a>,
V: PartialEq<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
pub fn vzip(self) -> V
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