[−][src]Struct druid::lens::Map
Lens
built from a getter and a setter
Implementations
impl<Get, Put> Map<Get, Put>
[src]
pub fn new<A: ?Sized, B>(get: Get, put: Put) -> Self where
Get: Fn(&A) -> B,
Put: Fn(&mut A, B),
[src]
Get: Fn(&A) -> B,
Put: Fn(&mut A, B),
Construct a mapping
See also LensExt::map
Trait Implementations
impl<Get: Clone, Put: Clone> Clone for Map<Get, Put>
[src]
impl<Get: Copy, Put: Copy> Copy for Map<Get, Put>
[src]
impl<Get: Debug, Put: Debug> Debug for Map<Get, Put>
[src]
impl<A: ?Sized, B, Get, Put> Lens<A, B> for Map<Get, Put> where
Get: Fn(&A) -> B,
Put: Fn(&mut A, B),
[src]
Get: Fn(&A) -> B,
Put: Fn(&mut A, B),
Auto Trait Implementations
impl<Get, Put> RefUnwindSafe for Map<Get, Put> where
Get: RefUnwindSafe,
Put: RefUnwindSafe,
[src]
Get: RefUnwindSafe,
Put: RefUnwindSafe,
impl<Get, Put> Send for Map<Get, Put> where
Get: Send,
Put: Send,
[src]
Get: Send,
Put: Send,
impl<Get, Put> Sync for Map<Get, Put> where
Get: Sync,
Put: Sync,
[src]
Get: Sync,
Put: Sync,
impl<Get, Put> Unpin for Map<Get, Put> where
Get: Unpin,
Put: Unpin,
[src]
Get: Unpin,
Put: Unpin,
impl<Get, Put> UnwindSafe for Map<Get, Put> where
Get: UnwindSafe,
Put: UnwindSafe,
[src]
Get: UnwindSafe,
Put: 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,