[][src]Trait myopic::lens::Getter

pub trait Getter: Lensable {
    fn get(&self, d: &Self::Input) -> Self::Output;
}

The Getter trait is for anything which can get an Output type from a refernence to an Input type.

Required methods

fn get(&self, d: &Self::Input) -> Self::Output

Loading content...

Implementations on Foreign Types

impl<D, A> Getter for dyn Fn(&D) -> A[src]

Loading content...

Implementors

impl<D, A> Getter for myopic::lens::lens_box::Lens<D, A>[src]

impl<D, A> Getter for myopic::lens::lens_fn::Lens<D, A>[src]

impl<D, A, B> Getter for myopic::lens::lens_box::ComposedLens<D, A, B>[src]

impl<G, S, D, A> Getter for myopic::lens::lens::Lens<G, S, D, A> where
    G: Fn(&D) -> A, 
[src]

impl<L1, L2> Getter for myopic::lens::lens::ComposedLens<L1, L2> where
    L1: Getter + Lensable,
    L2: Getter + Lensable<Input = L1::Output>, 
[src]

impl<O, O2> Getter for myopic::lens::lens_fn::ComposedLens<O, O2> where
    O: Getter + Lensable,
    O2: Getter + Lensable<Input = O::Output>, 
[src]

Loading content...