[][src]Struct myopic::lens::lens::ComposedLens

pub struct ComposedLens<L1, L2> {
    pub lhs: L1,
    pub rhs: L2,
}

Fields

lhs: L1rhs: L2

Methods

impl<L1, L2> ComposedLens<L1, L2>[src]

pub fn new(l1: L1, l2: L2) -> Self[src]

Trait Implementations

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

type Input = L1::Input

type Output = L2::Output

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

impl<L1, L2, D, A, B> Optical for ComposedLens<L1, L2> where
    L1: Optical<Input = D, Output = A>,
    L2: Optical<Input = A, Output = B>, 
[src]

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

Auto Trait Implementations

impl<L1, L2> Send for ComposedLens<L1, L2> where
    L1: Send,
    L2: Send

impl<L1, L2> Sync for ComposedLens<L1, L2> where
    L1: Sync,
    L2: Sync

impl<L1, L2> Unpin for ComposedLens<L1, L2> where
    L1: Unpin,
    L2: Unpin

impl<L1, L2> RefUnwindSafe for ComposedLens<L1, L2> where
    L1: RefUnwindSafe,
    L2: RefUnwindSafe

impl<L1, L2> UnwindSafe for ComposedLens<L1, L2> where
    L1: UnwindSafe,
    L2: UnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]