pub struct Map<Get, Put> { /* private fields */ }
Expand description
Lens
built from a getter and a setter
Implementations§
Trait Implementations§
source§impl<A: ?Sized, B, Get, Put> Lens<A, B> for Map<Get, Put>where
Get: Fn(&A) -> B,
Put: Fn(&mut A, B),
impl<A: ?Sized, B, Get, Put> Lens<A, B> for Map<Get, Put>where Get: Fn(&A) -> B, Put: Fn(&mut A, B),
impl<Get: Copy, Put: Copy> Copy for Map<Get, Put>
Auto Trait Implementations§
impl<Get, Put> RefUnwindSafe for Map<Get, Put>where Get: RefUnwindSafe, Put: RefUnwindSafe,
impl<Get, Put> Send for Map<Get, Put>where Get: Send, Put: Send,
impl<Get, Put> Sync for Map<Get, Put>where Get: Sync, Put: Sync,
impl<Get, Put> Unpin for Map<Get, Put>where Get: Unpin, Put: Unpin,
impl<Get, Put> UnwindSafe for Map<Get, Put>where Get: UnwindSafe, Put: UnwindSafe,
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.