pub struct LazyCollection<T> { /* private fields */ }Expand description
Opt-in lazy collection navigation wrapper.
This type stores loaded values and load state, but it never owns a database context and never performs I/O from accessors, formatting, cloning or comparison. Loading must happen through an explicit ORM method.
Implementations§
Source§impl<T> LazyCollection<T>
impl<T> LazyCollection<T>
Trait Implementations§
Source§impl<T: Clone> Clone for LazyCollection<T>
impl<T: Clone> Clone for LazyCollection<T>
Source§fn clone(&self) -> LazyCollection<T>
fn clone(&self) -> LazyCollection<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for LazyCollection<T>
impl<T: Debug> Debug for LazyCollection<T>
Source§impl<T> Default for LazyCollection<T>
impl<T> Default for LazyCollection<T>
Source§impl<T: PartialEq> PartialEq for LazyCollection<T>
impl<T: PartialEq> PartialEq for LazyCollection<T>
Source§fn eq(&self, other: &LazyCollection<T>) -> bool
fn eq(&self, other: &LazyCollection<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T: Eq> Eq for LazyCollection<T>
impl<T> StructuralPartialEq for LazyCollection<T>
Auto Trait Implementations§
impl<T> Freeze for LazyCollection<T>
impl<T> RefUnwindSafe for LazyCollection<T>where
T: RefUnwindSafe,
impl<T> Send for LazyCollection<T>where
T: Send,
impl<T> Sync for LazyCollection<T>where
T: Sync,
impl<T> Unpin for LazyCollection<T>where
T: Unpin,
impl<T> UnsafeUnpin for LazyCollection<T>
impl<T> UnwindSafe for LazyCollection<T>where
T: 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