[−][src]Struct dodo::repository::Filter
Cursor filter.
Only yields elements that satisfies a predicate.
Example
let entities = repository.find_all()? .filter(|person| person.age > 20) .collect()?;
Trait Implementations
impl<C, F> Cursor for Filter<C, F> where
C: Cursor,
F: FnMut(&C::Item) -> bool,
[src]
C: Cursor,
F: FnMut(&C::Item) -> bool,
type Item = C::Item
Entity.
fn next(&mut self) -> Result<Option<Self::Item>>
[src]
fn skip(self, nb_items: usize) -> Skip<Self> where
Self: Sized,
[src]
Self: Sized,
fn find<F>(&mut self, filter: F) -> Result<Option<Self::Item>> where
Self: Sized,
F: FnMut(&Self::Item) -> bool,
[src]
Self: Sized,
F: FnMut(&Self::Item) -> bool,
fn filter<F>(self, filter: F) -> Filter<Self, F> where
Self: Sized,
F: FnMut(&Self::Item) -> bool,
[src]
Self: Sized,
F: FnMut(&Self::Item) -> bool,
fn first(self) -> Result<Option<Self::Item>> where
Self: Sized,
[src]
Self: Sized,
fn nth(&mut self, index: usize) -> Result<Option<Self::Item>> where
Self: Sized,
[src]
Self: Sized,
fn take(self, nb_items: usize) -> Result<Vec<Self::Item>> where
Self: Sized,
[src]
Self: Sized,
fn collect(self) -> Result<Vec<Self::Item>> where
Self: Sized,
[src]
Self: Sized,
impl<C: Debug, F: Debug> Debug for Filter<C, F>
[src]
Auto Trait Implementations
impl<C, F> RefUnwindSafe for Filter<C, F> where
C: RefUnwindSafe,
F: RefUnwindSafe,
C: RefUnwindSafe,
F: RefUnwindSafe,
impl<C, F> Send for Filter<C, F> where
C: Send,
F: Send,
C: Send,
F: Send,
impl<C, F> Sync for Filter<C, F> where
C: Sync,
F: Sync,
C: Sync,
F: Sync,
impl<C, F> Unpin for Filter<C, F> where
C: Unpin,
F: Unpin,
C: Unpin,
F: Unpin,
impl<C, F> UnwindSafe for Filter<C, F> where
C: UnwindSafe,
F: UnwindSafe,
C: UnwindSafe,
F: UnwindSafe,
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,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,