[][src]Trait myopic::lens::Lensable

pub trait Lensable {
    type Input;
    type Output;
}

The Lensable trait allows types to carry around an Input and Output associated type.

Associated Types

type Input

type Output

Loading content...

Implementations on Foreign Types

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

type Input = D

type Output = A

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

type Input = D

type Output = A

Loading content...

Implementors

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

type Input = D

type Output = A

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

type Input = D

type Output = A

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

type Input = D

type Output = B

impl<G, S, D, A> Lensable for myopic::lens::lens::Lens<G, S, D, A>[src]

type Input = D

type Output = A

impl<L1, L2> Lensable for myopic::lens::lens::ComposedLens<L1, L2> where
    L1: Lensable,
    L2: Lensable
[src]

type Input = L1::Input

type Output = L2::Output

impl<O, O2> Lensable for myopic::lens::lens_fn::ComposedLens<O, O2> where
    O: Lensable,
    O2: Lensable
[src]

type Input = O::Input

type Output = O2::Output

Loading content...