Struct bonsaidb_core::schema::view::map::MappedDocuments
source · [−]pub struct MappedDocuments<D, V: View> {
pub mappings: Vec<Map<V::Key, V::Value>>,
pub documents: BTreeMap<u64, D>,
}Expand description
A collection of mappings and the associated documents.
Fields
mappings: Vec<Map<V::Key, V::Value>>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
type Item = MappedDocument<'a, D, V::Key, V::Value>
type Item = MappedDocument<'a, D, V::Key, V::Value>
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?
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
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