Skip to main content

CollectionExtract

Trait CollectionExtract 

Source
pub trait CollectionExtract<S>: Send + Sync {
    type Item;

    // Required method
    fn extract<'s>(&self, s: &'s S) -> &'s [Self::Item];
}

Required Associated Types§

Required Methods§

Source

fn extract<'s>(&self, s: &'s S) -> &'s [Self::Item]

Implementors§

Source§

impl<S, A, F> CollectionExtract<S> for VecExtract<F>
where F: Fn(&S) -> &Vec<A> + Send + Sync,

Source§

type Item = A

Source§

impl<S, A, F> CollectionExtract<S> for F
where F: Fn(&S) -> &[A] + Send + Sync,

Source§

type Item = A