[][src]Trait myopic::lens::Setter

pub trait Setter: Lensable {
    fn set(&self, d: &mut Self::Input, a: Self::Output);
}

The Setter trait is for types that can modify a given value of type Input with a value of type Outpyt.

Required methods

fn set(&self, d: &mut Self::Input, a: Self::Output)

Loading content...

Implementations on Foreign Types

impl<D, A> Setter for dyn Fn(&mut D, A)[src]

Loading content...

Implementors

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

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

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

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

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

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

Loading content...