[−][src]Struct qualia::MutableCollection
A reference to a modifiable set of objects matching a given query, as returned by
Checkpoint::query()
.
All methods of Collection
are available for MutableCollection
.
Implementations
impl<'a> MutableCollection<'a>
[src]
pub fn delete(&self) -> Result<usize>
[src]
Delete all objects in the collection.
Returns the number of deleted objects.
Methods from Deref<Target = Collection<'a>>
pub fn len(&self) -> Result<usize>
[src]
Get the number of objects in the collection.
pub fn exists(&self) -> Result<bool>
[src]
Returns true if there are any objects in the collection.
pub fn iter(&self) -> Result<impl Iterator<Item = Object> + 'a>
[src]
Iterate over all objects in the collection.
This prefetches all objects in the collection so that errors can be reported early.
pub fn iter_as<T: ObjectShape + 'a>(
&self
) -> Result<impl Iterator<Item = T> + 'a>
[src]
&self
) -> Result<impl Iterator<Item = T> + 'a>
Iterate over all objects in the collection, converting them to the given shape.
This prefetches all objects in the collection so that errors can be reported early.
Trait Implementations
impl<'a> Deref for MutableCollection<'a>
[src]
type Target = Collection<'a>
The resulting type after dereferencing.
pub fn deref(&self) -> &Collection<'a>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for MutableCollection<'a>
[src]
impl<'a> !Send for MutableCollection<'a>
[src]
impl<'a> !Sync for MutableCollection<'a>
[src]
impl<'a> Unpin for MutableCollection<'a>
[src]
impl<'a> !UnwindSafe for MutableCollection<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,