pub struct Map<Get, Put> { /* private fields */ }
Expand description
Lens
built from a getter and a setter
Implementations§
Trait Implementations§
§impl<A, B, Get, Put> Lens<A, B> for Map<Get, Put>where
Get: Fn(&A) -> B,
Put: Fn(&mut A, B),
A: ?Sized,
impl<A, B, Get, Put> Lens<A, B> for Map<Get, Put>where Get: Fn(&A) -> B, Put: Fn(&mut A, B), A: ?Sized,
impl<Get, Put> Copy for Map<Get, Put>where Get: Copy, Put: Copy,
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§
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<A, B, T> LensExt<A, B> for Twhere
T: Lens<A, B>,
A: ?Sized,
B: ?Sized,
impl<A, B, T> LensExt<A, B> for Twhere T: Lens<A, B>, A: ?Sized, B: ?Sized,
§fn then<Other, C>(self, other: Other) -> Then<Self, Other, B>where
Other: Lens<B, C>,
Self: Sized,
C: ?Sized,
fn then<Other, C>(self, other: Other) -> Then<Self, Other, B>where Other: Lens<B, C>, Self: Sized, C: ?Sized,
§fn map<Get, Put, C>(self, get: Get, put: Put) -> Then<Self, Map<Get, Put>, B>where
Get: Fn(&B) -> C,
Put: Fn(&mut B, C),
Self: Sized,
fn map<Get, Put, C>(self, get: Get, put: Put) -> Then<Self, Map<Get, Put>, B>where Get: Fn(&B) -> C, Put: Fn(&mut B, C), Self: Sized,
§fn deref(self) -> Then<Self, Deref, B>where
B: Deref + DerefMut,
Self: Sized,
fn deref(self) -> Then<Self, Deref, B>where B: Deref + DerefMut, Self: Sized,
Invoke a type’s
Deref
impl Read more§fn index<I>(self, index: I) -> Then<Self, Index<I>, B>where
I: Clone,
B: Index<I> + IndexMut<I>,
Self: Sized,
fn index<I>(self, index: I) -> Then<Self, Index<I>, B>where I: Clone, B: Index<I> + IndexMut<I>, Self: Sized,
Access an index in a container Read more
§impl<T> Pointable for T
impl<T> Pointable for T
§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.