pub struct Map<K = (), V = ()> where
K: for<'a> Key<'a>, {
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
sourceimpl<K, V> Extend<Map<K, V>> for Mappings<K, V> where
K: for<'a> Key<'a>,
impl<K, V> Extend<Map<K, V>> for Mappings<K, V> where
K: for<'a> Key<'a>,
sourcefn extend<T>(&mut self, iter: T) where
T: IntoIterator<Item = Map<K, V>>,
fn extend<T>(&mut self, iter: T) where
T: IntoIterator<Item = Map<K, V>>,
Extends a collection with the contents of an iterator. Read more
sourcefn 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.
sourcefn 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
sourceimpl<K, V> FromIterator<Map<K, V>> for Mappings<K, V> where
K: for<'a> Key<'a>,
impl<K, V> FromIterator<Map<K, V>> for Mappings<K, V> where
K: for<'a> Key<'a>,
sourceimpl<K, V> PartialEq<Map<K, V>> for Map<K, V> where
K: PartialEq<K> + for<'a> Key<'a>,
V: PartialEq<V>,
impl<K, V> PartialEq<Map<K, V>> for Map<K, V> where
K: PartialEq<K> + for<'a> Key<'a>,
V: PartialEq<V>,
impl<K, V> StructuralPartialEq for Map<K, V> where
K: for<'a> Key<'a>,
Auto Trait Implementations
impl<K, V> RefUnwindSafe for Map<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Map<K, V> where
V: Send,
impl<K, V> Sync for Map<K, V> where
V: Sync,
impl<K, V> Unpin for Map<K, V> where
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for Map<K, V> where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more