pub struct ComposedMPrism<LHS, RHS> { /* private fields */ }
Implementations§
Source§impl<LHS, RHS> ComposedMPrism<LHS, RHS>
impl<LHS, RHS> ComposedMPrism<LHS, RHS>
pub fn compose(lhs: LHS, rhs: RHS) -> ComposedMPrism<LHS, RHS>
Trait Implementations§
Source§impl<LHS, RHS> MPrism for ComposedMPrism<LHS, RHS>
impl<LHS, RHS> MPrism for ComposedMPrism<LHS, RHS>
Source§type Source = <LHS as MPrism>::Source
type Source = <LHS as MPrism>::Source
The lens source type, i.e., the object containing the field.
Source§type Target = <RHS as MPrism>::Target
type Target = <RHS as MPrism>::Target
The lens target type, i.e., the field to be accessed or modified.
fn traverse(&self, source: Self::Source) -> Option<Self::Target>
fn re_get(&self, target: Self::Target) -> Self::Source
Auto Trait Implementations§
impl<LHS, RHS> Freeze for ComposedMPrism<LHS, RHS>
impl<LHS, RHS> RefUnwindSafe for ComposedMPrism<LHS, RHS>where
LHS: RefUnwindSafe,
RHS: RefUnwindSafe,
impl<LHS, RHS> Send for ComposedMPrism<LHS, RHS>
impl<LHS, RHS> Sync for ComposedMPrism<LHS, RHS>
impl<LHS, RHS> Unpin for ComposedMPrism<LHS, RHS>
impl<LHS, RHS> UnwindSafe for ComposedMPrism<LHS, RHS>where
LHS: UnwindSafe,
RHS: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more