pub struct _3;
Expand description
Lens for field 3
in tuples.
Trait Implementations§
source§impl<T0, T1, T2, T3> AffineFold<(T0, T1, T2, T3)> for _3
impl<T0, T1, T2, T3> AffineFold<(T0, T1, T2, T3)> for _3
source§impl<'a, T0, T1, T2, T3> AffineFoldMut<'a, (T0, T1, T2, T3)> for _3where
T3: 'a,
impl<'a, T0, T1, T2, T3> AffineFoldMut<'a, (T0, T1, T2, T3)> for _3where
T3: 'a,
source§fn preview_mut(
&self,
s: &'a mut (T0, T1, T2, T3)
) -> Result<&'a mut T3, Self::Error>
fn preview_mut( &self, s: &'a mut (T0, T1, T2, T3) ) -> Result<&'a mut T3, Self::Error>
Retrieve a mutable reference the value targeted by an AffineFold.
source§impl<'a, T0, T1, T2, T3> AffineFoldRef<'a, (T0, T1, T2, T3)> for _3where
T3: 'a,
impl<'a, T0, T1, T2, T3> AffineFoldRef<'a, (T0, T1, T2, T3)> for _3where
T3: 'a,
source§fn preview_ref(&self, s: &'a (T0, T1, T2, T3)) -> Result<&'a T3, Self::Error>
fn preview_ref(&self, s: &'a (T0, T1, T2, T3)) -> Result<&'a T3, Self::Error>
Retrieve a shared reference the value targeted by an AffineFold.
source§impl<T0, T1, T2, T3> AffineTraversal<(T0, T1, T2, T3)> for _3
impl<T0, T1, T2, T3> AffineTraversal<(T0, T1, T2, T3)> for _3
source§impl<T0, T1, T2, T3> Getter<(T0, T1, T2, T3)> for _3
impl<T0, T1, T2, T3> Getter<(T0, T1, T2, T3)> for _3
source§fn view(&self, s: (T0, T1, T2, T3)) -> T3
fn view(&self, s: (T0, T1, T2, T3)) -> T3
View the value pointed to by a getter.
source§impl<'a, T0, T1, T2, T3> GetterMut<'a, (T0, T1, T2, T3)> for _3where
T3: 'a,
impl<'a, T0, T1, T2, T3> GetterMut<'a, (T0, T1, T2, T3)> for _3where
T3: 'a,
source§fn view_mut(&self, s: &'a mut (T0, T1, T2, T3)) -> &'a mut T3
fn view_mut(&self, s: &'a mut (T0, T1, T2, T3)) -> &'a mut T3
Get a mutable reference to the value pointed to by a getter.
source§impl<'a, T0, T1, T2, T3> GetterRef<'a, (T0, T1, T2, T3)> for _3where
T3: 'a,
impl<'a, T0, T1, T2, T3> GetterRef<'a, (T0, T1, T2, T3)> for _3where
T3: 'a,
source§fn view_ref(&self, s: &'a (T0, T1, T2, T3)) -> &'a T3
fn view_ref(&self, s: &'a (T0, T1, T2, T3)) -> &'a T3
Get a shared reference to the value pointed to by a getter.
source§impl<T0, T1, T2, T3> Optics<(T0, T1, T2, T3)> for _3
impl<T0, T1, T2, T3> Optics<(T0, T1, T2, T3)> for _3
source§impl OpticsFallible for _3
impl OpticsFallible for _3
§type Error = Infallible
type Error = Infallible
Error type for this optics.
source§fn success_witness(&self) -> _3
fn success_witness(&self) -> _3
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§fn map_error<E, G>(self, g: G) -> MapError<Self, G>
fn map_error<E, G>(self, g: G) -> MapError<Self, G>
Map the
Error
type for this fallible optics.source§fn assert_infallible(self) -> MapFallibleTo<Self, Self::Success, Infallible>
fn assert_infallible(self) -> MapFallibleTo<Self, Self::Success, Infallible>
Assert that this optics should never fail (in practice).
The resulting optics panics on error.
source§fn to_str_err(self) -> MapFallibleTo<Self, Self::Success, String>
fn to_str_err(self) -> MapFallibleTo<Self, Self::Success, String>
Map the
Error
type to Box<str>
.source§impl Ord for _3
impl Ord for _3
source§impl PartialOrd for _3
impl PartialOrd for _3
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<T0, T1, T2, T3> Setter<(T0, T1, T2, T3)> for _3
impl<T0, T1, T2, T3> Setter<(T0, T1, T2, T3)> for _3
source§impl<T0, T1, T2, T3> Traversal<(T0, T1, T2, T3)> for _3
impl<T0, T1, T2, T3> Traversal<(T0, T1, T2, T3)> for _3
impl Copy for _3
impl Eq for _3
impl<T0, T1, T2, T3> Lens<(T0, T1, T2, T3)> for _3
impl StructuralPartialEq for _3
Auto Trait Implementations§
impl Freeze for _3
impl RefUnwindSafe for _3
impl Send for _3
impl Sync for _3
impl Unpin for _3
impl UnwindSafe for _3
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