pub struct Map<K = (), V = ()> {
pub source: Header,
pub key: K,
pub value: V,
}
Expand description
A document’s entry in a View’s mappings.
Fields§
§source: Header
The header of the document that emitted this entry.
key: K
The key used to index the View.
value: V
An associated value stored in the view.
Implementations§
Trait Implementations§
source§impl<K, V> Extend<Map<K, V>> for Mappings<K, V>
impl<K, V> Extend<Map<K, V>> for Mappings<K, V>
source§fn extend<T: IntoIterator<Item = Map<K, V>>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Map<K, V>>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl<K, V> FromIterator<Map<K, V>> for Mappings<K, V>
impl<K, V> FromIterator<Map<K, V>> for Mappings<K, V>
source§impl<K: PartialEq, V: PartialEq> PartialEq for Map<K, V>
impl<K: PartialEq, V: PartialEq> PartialEq for Map<K, V>
impl<K: Eq, V: Eq> Eq for Map<K, V>
impl<K, V> StructuralEq for Map<K, V>
impl<K, V> StructuralPartialEq for Map<K, V>
Auto Trait Implementations§
impl<K, V> RefUnwindSafe for Map<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Map<K, V>
impl<K, V> Sync for Map<K, V>
impl<K, V> Unpin for Map<K, V>
impl<K, V> UnwindSafe for Map<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