Trait Selector1

Source
pub trait Selector1<A> {
    type Output;

    // Required method
    fn select(&mut self, arg1: A) -> Self::Output;
}
Expand description

A selector accepting a single parameter.

Required Associated Types§

Source

type Output

The type of the computed value.

Required Methods§

Source

fn select(&mut self, arg1: A) -> Self::Output

Computes the value based on argument arg1.

Implementors§

Source§

impl<A1, R, T: FnMut(A1) -> R> Selector1<A1> for T