[][src]Struct druid::widget::LensScopeTransfer

pub struct LensScopeTransfer<L: Lens<State, In>, In, State> { /* fields omitted */ }

A ScopeTransfer that uses a Lens to synchronise between a large internal state and a small input.

Implementations

impl<L: Lens<State, In>, In, State> LensScopeTransfer<L, In, State>[src]

pub fn new(lens: L) -> Self[src]

Create a ScopeTransfer from a Lens onto a portion of the Scope's state.

Trait Implementations

impl<L: Lens<State, In>, In: Data, State: Data> ScopeTransfer for LensScopeTransfer<L, In, State>[src]

type In = In

The type of data that comes in from the surrounding application or scope.

type State = State

The type of data that the Scope will maintain internally.

Auto Trait Implementations

impl<L, In, State> RefUnwindSafe for LensScopeTransfer<L, In, State> where
    In: RefUnwindSafe,
    L: RefUnwindSafe,
    State: RefUnwindSafe
[src]

impl<L, In, State> Send for LensScopeTransfer<L, In, State> where
    In: Send,
    L: Send,
    State: Send
[src]

impl<L, In, State> Sync for LensScopeTransfer<L, In, State> where
    In: Sync,
    L: Sync,
    State: Sync
[src]

impl<L, In, State> Unpin for LensScopeTransfer<L, In, State> where
    In: Unpin,
    L: Unpin,
    State: Unpin
[src]

impl<L, In, State> UnwindSafe for LensScopeTransfer<L, In, State> where
    In: UnwindSafe,
    L: UnwindSafe,
    State: 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, 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.