pub struct Compose<K, L>(pub K, pub L);
Expand description
Composed optics of K
and L
; K
is applied first.
Tuple Fields§
§0: K
§1: L
Trait Implementations§
source§impl<K, L, T> AffineFold<T> for Compose<K, L>
impl<K, L, T> AffineFold<T> for Compose<K, L>
source§impl<'a, T: ?Sized, K, L> AffineFoldMut<'a, T> for Compose<K, L>
impl<'a, T: ?Sized, K, L> AffineFoldMut<'a, T> for Compose<K, L>
source§impl<'a, T: ?Sized, K, L> AffineFoldRef<'a, T> for Compose<K, L>
impl<'a, T: ?Sized, K, L> AffineFoldRef<'a, T> for Compose<K, L>
source§impl<K, L, T> AffineTraversal<T> for Compose<K, L>
impl<K, L, T> AffineTraversal<T> for Compose<K, L>
source§impl<K: OpticsFallible, L: OpticsFallible> OpticsFallible for Compose<K, L>
impl<K: OpticsFallible, L: OpticsFallible> OpticsFallible for Compose<K, L>
§type Success = SuccessCompose<<K as OpticsFallible>::Success, <L as OpticsFallible>::Success>
type Success = SuccessCompose<<K as OpticsFallible>::Success, <L as OpticsFallible>::Success>
Success type for this optics.
§type Error = ErrorCompose<<K as OpticsFallible>::Error, <K as OpticsFallible>::Success, <L as OpticsFallible>::Error>
type Error = ErrorCompose<<K as OpticsFallible>::Error, <K as OpticsFallible>::Success, <L as OpticsFallible>::Error>
Error type for this optics.
source§fn success_witness(&self) -> Self::Success
fn success_witness(&self) -> Self::Success
Get a lightweight witness for success.
source§fn map_fallible<S, F, E, G>(self, f: F, g: G) -> MapFallible<Self, F, G>
fn map_fallible<S, F, E, G>(self, f: F, g: G) -> MapFallible<Self, F, G>
Map the
Success
and Error
type for this fallible optics.source§fn map_success<S, F>(self, f: F) -> MapSuccess<Self, F>
fn map_success<S, F>(self, f: F) -> MapSuccess<Self, F>
Map the
Success
type for this fallible optics.source§impl<K: Ord, L: Ord> Ord for Compose<K, L>
impl<K: Ord, L: Ord> Ord for Compose<K, L>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<K: PartialEq, L: PartialEq> PartialEq for Compose<K, L>
impl<K: PartialEq, L: PartialEq> PartialEq for Compose<K, L>
source§impl<K: PartialOrd, L: PartialOrd> PartialOrd for Compose<K, L>
impl<K: PartialOrd, L: PartialOrd> PartialOrd for Compose<K, L>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<K, L, T> Traversal<T> for Compose<K, L>
impl<K, L, T> Traversal<T> for Compose<K, L>
impl<K: Copy, L: Copy> Copy for Compose<K, L>
impl<K: Eq, L: Eq> Eq for Compose<K, L>
impl<K, L, T> Iso<T> for Compose<K, L>
impl<K, L, T> Lens<T> for Compose<K, L>
impl<K, L, T> Prism<T> for Compose<K, L>
impl<K, L> StructuralPartialEq for Compose<K, L>
Auto Trait Implementations§
impl<K, L> Freeze for Compose<K, L>
impl<K, L> RefUnwindSafe for Compose<K, L>where
K: RefUnwindSafe,
L: RefUnwindSafe,
impl<K, L> Send for Compose<K, L>
impl<K, L> Sync for Compose<K, L>
impl<K, L> Unpin for Compose<K, L>
impl<K, L> UnwindSafe for Compose<K, L>where
K: UnwindSafe,
L: 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