pub struct MappedDocuments<D, V> where
V: View, {
pub mappings: Vec<Map<<V as View>::Key, <V as View>::Value>, Global>,
pub documents: BTreeMap<u64, D>,
}
Expand description
A collection of mappings and the associated documents.
Fields
mappings: Vec<Map<<V as View>::Key, <V as View>::Value>, Global>
The collection of mappings.
documents: BTreeMap<u64, D>
All associated documents by ID.
Documents can appear in a mapping query multiple times. As a result, they are stored separately to avoid duplication.
Implementations
Trait Implementations
The type of the elements being iterated over.
type IntoIter = MappedDocumentsIter<'a, D, V>
type IntoIter = MappedDocumentsIter<'a, D, V>
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
Auto Trait Implementations
impl<D, V> RefUnwindSafe for MappedDocuments<D, V> where
D: RefUnwindSafe,
<V as View>::Key: RefUnwindSafe,
<V as View>::Value: RefUnwindSafe,
impl<D, V> Send for MappedDocuments<D, V> where
D: Send,
impl<D, V> Sync for MappedDocuments<D, V> where
D: Sync,
impl<D, V> Unpin for MappedDocuments<D, V> where
<V as View>::Key: Unpin,
<V as View>::Value: Unpin,
impl<D, V> UnwindSafe for MappedDocuments<D, V> where
D: RefUnwindSafe,
<V as View>::Key: UnwindSafe,
<V as View>::Value: 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