[][src]Struct dodo::repository::Filter

pub struct Filter<C, F> { /* fields omitted */ }

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]

type Item = C::Item

Entity.

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

impl<C, F> Send for Filter<C, F> where
    C: Send,
    F: Send

impl<C, F> Sync for Filter<C, F> where
    C: Sync,
    F: Sync

impl<C, F> Unpin for Filter<C, F> where
    C: Unpin,
    F: Unpin

impl<C, F> UnwindSafe for Filter<C, F> where
    C: UnwindSafe,
    F: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,