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

pub struct ComposedLens<O, O2> {
    pub lhs: O,
    pub rhs: O2,
}

Fields

lhs: Orhs: O2

Methods

impl<O, O2> ComposedLens<O, O2>[src]

pub fn new(o: O, o2: O2) -> Self[src]

Trait Implementations

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

type Input = O::Input

type Output = O2::Output

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

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

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

Auto Trait Implementations

impl<O, O2> Send for ComposedLens<O, O2> where
    O: Send,
    O2: Send

impl<O, O2> Unpin for ComposedLens<O, O2> where
    O: Unpin,
    O2: Unpin

impl<O, O2> Sync for ComposedLens<O, O2> where
    O: Sync,
    O2: Sync

impl<O, O2> UnwindSafe for ComposedLens<O, O2> where
    O: UnwindSafe,
    O2: UnwindSafe

impl<O, O2> RefUnwindSafe for ComposedLens<O, O2> where
    O: RefUnwindSafe,
    O2: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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