Struct datafrog::FilterWith[][src]

pub struct FilterWith<'leap, Key, Val, Tuple, Func> where
    Key: Ord + 'leap,
    Val: Ord + 'leap,
    Tuple: Ord,
    Func: Fn(&Tuple) -> (Key, Val)
{ /* fields omitted */ }

Wraps a Relation as a leaper.

Implementations

impl<'leap, Key, Val, Tuple, Func> FilterWith<'leap, Key, Val, Tuple, Func> where
    Key: Ord + 'leap,
    Val: Ord + 'leap,
    Tuple: Ord,
    Func: Fn(&Tuple) -> (Key, Val)
[src]

pub fn from(relation: &'leap Relation<(Key, Val)>, key_func: Func) -> Self[src]

Constructs a FilterWith from a relation and key and value function.

Trait Implementations

impl<'leap, Key, Val, Val2, Tuple, Func> Leaper<'leap, Tuple, Val2> for FilterWith<'leap, Key, Val, Tuple, Func> where
    Key: Ord + 'leap,
    Val: Ord + 'leap,
    Tuple: Ord,
    Func: Fn(&Tuple) -> (Key, Val)
[src]

impl<'leap, Key, Val, Tuple, Func> Leapers<'leap, Tuple, ()> for FilterWith<'leap, Key, Val, Tuple, Func> where
    Key: Ord + 'leap,
    Val: Ord + 'leap,
    Tuple: Ord,
    Func: Fn(&Tuple) -> (Key, Val)
[src]

Auto Trait Implementations

impl<'leap, Key, Val, Tuple, Func> RefUnwindSafe for FilterWith<'leap, Key, Val, Tuple, Func> where
    Func: RefUnwindSafe,
    Key: RefUnwindSafe,
    Tuple: RefUnwindSafe,
    Val: RefUnwindSafe

impl<'leap, Key, Val, Tuple, Func> Send for FilterWith<'leap, Key, Val, Tuple, Func> where
    Func: Send,
    Key: Sync,
    Tuple: Send,
    Val: Sync

impl<'leap, Key, Val, Tuple, Func> Sync for FilterWith<'leap, Key, Val, Tuple, Func> where
    Func: Sync,
    Key: Sync,
    Tuple: Sync,
    Val: Sync

impl<'leap, Key, Val, Tuple, Func> Unpin for FilterWith<'leap, Key, Val, Tuple, Func> where
    Func: Unpin,
    Tuple: Unpin

impl<'leap, Key, Val, Tuple, Func> UnwindSafe for FilterWith<'leap, Key, Val, Tuple, Func> where
    Func: UnwindSafe,
    Key: RefUnwindSafe,
    Tuple: UnwindSafe,
    Val: RefUnwindSafe

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.