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];

    // Provided method
    fn change_source(&self) -> ChangeSource { ... }
}

Required Associated Types§

Required Methods§

Source

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

Provided Methods§

Implementors§

Source§

impl<S, A, E, Sc> CollectionExtract<S> for UniConstraintStream<S, A, E, TrueFilter, Sc>
where S: Send + Sync + 'static, A: Clone + Send + Sync + 'static, E: CollectionExtract<S, Item = A>, Sc: Score + 'static,

Source§

type Item = A

Source§

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

Source§

type Item = A

Source§

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

Source§

type Item = A

Source§

impl<S, E> CollectionExtract<S> for SourceExtract<E>
where E: CollectionExtract<S>,