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<DocumentId, 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<DocumentId, 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
sourceimpl<D, V: View> MappedDocuments<D, V>
impl<D, V: View> MappedDocuments<D, V>
Trait Implementations
sourceimpl<D: Debug, V: Debug + View> Debug for MappedDocuments<D, V> where
V::Key: Debug,
V::Value: Debug,
impl<D: Debug, V: Debug + View> Debug for MappedDocuments<D, V> where
V::Key: Debug,
V::Value: Debug,
sourceimpl<'a, D, V: View> IntoIterator for &'a MappedDocuments<D, V>
impl<'a, D, V: View> IntoIterator for &'a MappedDocuments<D, V>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more