[−][src]Struct druid::widget::LensScopeTransfer
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.
pub fn read_input(&self, state: &mut State, data: &In)
[src]
pub fn write_back_input(&self, state: &State, data: &mut In)
[src]
Auto Trait Implementations
impl<L, In, State> RefUnwindSafe for LensScopeTransfer<L, In, State> where
In: RefUnwindSafe,
L: RefUnwindSafe,
State: RefUnwindSafe,
[src]
In: RefUnwindSafe,
L: RefUnwindSafe,
State: RefUnwindSafe,
impl<L, In, State> Send for LensScopeTransfer<L, In, State> where
In: Send,
L: Send,
State: Send,
[src]
In: Send,
L: Send,
State: Send,
impl<L, In, State> Sync for LensScopeTransfer<L, In, State> where
In: Sync,
L: Sync,
State: Sync,
[src]
In: Sync,
L: Sync,
State: Sync,
impl<L, In, State> Unpin for LensScopeTransfer<L, In, State> where
In: Unpin,
L: Unpin,
State: Unpin,
[src]
In: Unpin,
L: Unpin,
State: Unpin,
impl<L, In, State> UnwindSafe for LensScopeTransfer<L, In, State> where
In: UnwindSafe,
L: UnwindSafe,
State: UnwindSafe,
[src]
In: UnwindSafe,
L: UnwindSafe,
State: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> RoundFrom<T> for T
pub fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,
pub fn round_into(self) -> U
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,