[][src]Struct druid::lens::Then

pub struct Then<T, U, B: ?Sized> { /* fields omitted */ }

Lens composed of two lenses joined together

Implementations

impl<T, U, B: ?Sized> Then<T, U, B>[src]

pub fn new<A: ?Sized, C: ?Sized>(left: T, right: U) -> Self where
    T: Lens<A, B>,
    U: Lens<B, C>, 
[src]

Compose two lenses

See also LensExt::then.

Trait Implementations

impl<T: Clone, U: Clone, B> Clone for Then<T, U, B>[src]

impl<T: Copy, U: Copy, B: Copy + ?Sized> Copy for Then<T, U, B>[src]

impl<T: Debug, U: Debug, B: Debug + ?Sized> Debug for Then<T, U, B>[src]

impl<T, U, A, B, C> Lens<A, C> for Then<T, U, B> where
    A: ?Sized,
    B: ?Sized,
    C: ?Sized,
    T: Lens<A, B>,
    U: Lens<B, C>, 
[src]

Auto Trait Implementations

impl<T, U, B: ?Sized> RefUnwindSafe for Then<T, U, B> where
    B: RefUnwindSafe,
    T: RefUnwindSafe,
    U: RefUnwindSafe
[src]

impl<T, U, B: ?Sized> Send for Then<T, U, B> where
    B: Send,
    T: Send,
    U: Send
[src]

impl<T, U, B: ?Sized> Sync for Then<T, U, B> where
    B: Sync,
    T: Sync,
    U: Sync
[src]

impl<T, U, B: ?Sized> Unpin for Then<T, U, B> where
    B: Unpin,
    T: Unpin,
    U: Unpin
[src]

impl<T, U, B: ?Sized> UnwindSafe for Then<T, U, B> where
    B: UnwindSafe,
    T: UnwindSafe,
    U: UnwindSafe
[src]

Blanket Implementations

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

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

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

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

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

impl<T> RoundFrom<T> for T

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.