pub struct _0;
Expand description
Lens for field 0
in tuples.
Trait Implementations§
source§impl<T0> AffineFold<(T0,)> for _0
impl<T0> AffineFold<(T0,)> for _0
source§impl<T0, T1> AffineFold<(T0, T1)> for _0
impl<T0, T1> AffineFold<(T0, T1)> for _0
source§impl<T0, T1, T2> AffineFold<(T0, T1, T2)> for _0
impl<T0, T1, T2> AffineFold<(T0, T1, T2)> for _0
source§impl<T0, T1, T2, T3> AffineFold<(T0, T1, T2, T3)> for _0
impl<T0, T1, T2, T3> AffineFold<(T0, T1, T2, T3)> for _0
source§impl<'a, T0> AffineFoldMut<'a, (T0,)> for _0where
T0: 'a,
impl<'a, T0> AffineFoldMut<'a, (T0,)> for _0where
T0: 'a,
source§fn preview_mut(&self, s: &'a mut (T0,)) -> Result<&'a mut T0, Self::Error>
fn preview_mut(&self, s: &'a mut (T0,)) -> Result<&'a mut T0, Self::Error>
Retrieve a mutable reference the value targeted by an AffineFold.
source§impl<'a, T0, T1> AffineFoldMut<'a, (T0, T1)> for _0where
T0: 'a,
impl<'a, T0, T1> AffineFoldMut<'a, (T0, T1)> for _0where
T0: 'a,
source§fn preview_mut(&self, s: &'a mut (T0, T1)) -> Result<&'a mut T0, Self::Error>
fn preview_mut(&self, s: &'a mut (T0, T1)) -> Result<&'a mut T0, Self::Error>
Retrieve a mutable reference the value targeted by an AffineFold.
source§impl<'a, T0, T1, T2> AffineFoldMut<'a, (T0, T1, T2)> for _0where
T0: 'a,
impl<'a, T0, T1, T2> AffineFoldMut<'a, (T0, T1, T2)> for _0where
T0: 'a,
source§fn preview_mut(
&self,
s: &'a mut (T0, T1, T2)
) -> Result<&'a mut T0, Self::Error>
fn preview_mut( &self, s: &'a mut (T0, T1, T2) ) -> Result<&'a mut T0, Self::Error>
Retrieve a mutable reference the value targeted by an AffineFold.
source§impl<'a, T0, T1, T2, T3> AffineFoldMut<'a, (T0, T1, T2, T3)> for _0where
T0: 'a,
impl<'a, T0, T1, T2, T3> AffineFoldMut<'a, (T0, T1, T2, T3)> for _0where
T0: 'a,
source§fn preview_mut(
&self,
s: &'a mut (T0, T1, T2, T3)
) -> Result<&'a mut T0, Self::Error>
fn preview_mut( &self, s: &'a mut (T0, T1, T2, T3) ) -> Result<&'a mut T0, Self::Error>
Retrieve a mutable reference the value targeted by an AffineFold.
source§impl<'a, T0> AffineFoldRef<'a, (T0,)> for _0where
T0: 'a,
impl<'a, T0> AffineFoldRef<'a, (T0,)> for _0where
T0: 'a,
source§impl<'a, T0, T1> AffineFoldRef<'a, (T0, T1)> for _0where
T0: 'a,
impl<'a, T0, T1> AffineFoldRef<'a, (T0, T1)> for _0where
T0: 'a,
source§impl<'a, T0, T1, T2> AffineFoldRef<'a, (T0, T1, T2)> for _0where
T0: 'a,
impl<'a, T0, T1, T2> AffineFoldRef<'a, (T0, T1, T2)> for _0where
T0: 'a,
source§fn preview_ref(&self, s: &'a (T0, T1, T2)) -> Result<&'a T0, Self::Error>
fn preview_ref(&self, s: &'a (T0, T1, T2)) -> Result<&'a T0, Self::Error>
Retrieve a shared reference the value targeted by an AffineFold.
source§impl<'a, T0, T1, T2, T3> AffineFoldRef<'a, (T0, T1, T2, T3)> for _0where
T0: 'a,
impl<'a, T0, T1, T2, T3> AffineFoldRef<'a, (T0, T1, T2, T3)> for _0where
T0: 'a,
source§fn preview_ref(&self, s: &'a (T0, T1, T2, T3)) -> Result<&'a T0, Self::Error>
fn preview_ref(&self, s: &'a (T0, T1, T2, T3)) -> Result<&'a T0, Self::Error>
Retrieve a shared reference the value targeted by an AffineFold.
source§impl<T0> AffineTraversal<(T0,)> for _0
impl<T0> AffineTraversal<(T0,)> for _0
source§impl<T0, T1> AffineTraversal<(T0, T1)> for _0
impl<T0, T1> AffineTraversal<(T0, T1)> for _0
source§impl<T0, T1, T2> AffineTraversal<(T0, T1, T2)> for _0
impl<T0, T1, T2> AffineTraversal<(T0, T1, T2)> for _0
source§impl<T0, T1, T2, T3> AffineTraversal<(T0, T1, T2, T3)> for _0
impl<T0, T1, T2, T3> AffineTraversal<(T0, T1, T2, T3)> for _0
source§impl<T0, T1, T2> Getter<(T0, T1, T2)> for _0
impl<T0, T1, T2> Getter<(T0, T1, T2)> for _0
source§fn view(&self, s: (T0, T1, T2)) -> T0
fn view(&self, s: (T0, T1, T2)) -> T0
View the value pointed to by a getter.
source§impl<T0, T1, T2, T3> Getter<(T0, T1, T2, T3)> for _0
impl<T0, T1, T2, T3> Getter<(T0, T1, T2, T3)> for _0
source§fn view(&self, s: (T0, T1, T2, T3)) -> T0
fn view(&self, s: (T0, T1, T2, T3)) -> T0
View the value pointed to by a getter.
source§impl<'a, T0> GetterMut<'a, (T0,)> for _0where
T0: 'a,
impl<'a, T0> GetterMut<'a, (T0,)> for _0where
T0: 'a,
source§fn view_mut(&self, s: &'a mut (T0,)) -> &'a mut T0
fn view_mut(&self, s: &'a mut (T0,)) -> &'a mut T0
Get a mutable reference to the value pointed to by a getter.
source§impl<'a, T0, T1> GetterMut<'a, (T0, T1)> for _0where
T0: 'a,
impl<'a, T0, T1> GetterMut<'a, (T0, T1)> for _0where
T0: 'a,
source§fn view_mut(&self, s: &'a mut (T0, T1)) -> &'a mut T0
fn view_mut(&self, s: &'a mut (T0, T1)) -> &'a mut T0
Get a mutable reference to the value pointed to by a getter.
source§impl<'a, T0, T1, T2> GetterMut<'a, (T0, T1, T2)> for _0where
T0: 'a,
impl<'a, T0, T1, T2> GetterMut<'a, (T0, T1, T2)> for _0where
T0: 'a,
source§fn view_mut(&self, s: &'a mut (T0, T1, T2)) -> &'a mut T0
fn view_mut(&self, s: &'a mut (T0, T1, T2)) -> &'a mut T0
Get a mutable reference to the value pointed to by a getter.
source§impl<'a, T0, T1, T2, T3> GetterMut<'a, (T0, T1, T2, T3)> for _0where
T0: 'a,
impl<'a, T0, T1, T2, T3> GetterMut<'a, (T0, T1, T2, T3)> for _0where
T0: 'a,
source§fn view_mut(&self, s: &'a mut (T0, T1, T2, T3)) -> &'a mut T0
fn view_mut(&self, s: &'a mut (T0, T1, T2, T3)) -> &'a mut T0
Get a mutable reference to the value pointed to by a getter.
source§impl<'a, T0, T1, T2> GetterRef<'a, (T0, T1, T2)> for _0where
T0: 'a,
impl<'a, T0, T1, T2> GetterRef<'a, (T0, T1, T2)> for _0where
T0: 'a,
source§fn view_ref(&self, s: &'a (T0, T1, T2)) -> &'a T0
fn view_ref(&self, s: &'a (T0, T1, T2)) -> &'a T0
Get a shared reference to the value pointed to by a getter.
source§impl<'a, T0, T1, T2, T3> GetterRef<'a, (T0, T1, T2, T3)> for _0where
T0: 'a,
impl<'a, T0, T1, T2, T3> GetterRef<'a, (T0, T1, T2, T3)> for _0where
T0: 'a,
source§fn view_ref(&self, s: &'a (T0, T1, T2, T3)) -> &'a T0
fn view_ref(&self, s: &'a (T0, T1, T2, T3)) -> &'a T0
Get a shared reference to the value pointed to by a getter.
source§impl<T0, T1, T2, T3> Optics<(T0, T1, T2, T3)> for _0
impl<T0, T1, T2, T3> Optics<(T0, T1, T2, T3)> for _0
source§impl OpticsFallible for _0
impl OpticsFallible for _0
§type Error = Infallible
type Error = Infallible
Error type for this optics.
source§fn success_witness(&self) -> _0
fn success_witness(&self) -> _0
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 _0
impl Ord for _0
source§impl PartialOrd for _0
impl PartialOrd for _0
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> Setter<(T0, T1, T2)> for _0
impl<T0, T1, T2> Setter<(T0, T1, T2)> for _0
source§impl<T0, T1, T2, T3> Setter<(T0, T1, T2, T3)> for _0
impl<T0, T1, T2, T3> Setter<(T0, T1, T2, T3)> for _0
source§impl<T0> Traversal<(T0,)> for _0
impl<T0> Traversal<(T0,)> for _0
source§impl<T0, T1> Traversal<(T0, T1)> for _0
impl<T0, T1> Traversal<(T0, T1)> for _0
source§impl<T0, T1, T2> Traversal<(T0, T1, T2)> for _0
impl<T0, T1, T2> Traversal<(T0, T1, T2)> for _0
source§impl<T0, T1, T2, T3> Traversal<(T0, T1, T2, T3)> for _0
impl<T0, T1, T2, T3> Traversal<(T0, T1, T2, T3)> for _0
impl Copy for _0
impl Eq for _0
impl<T0> Lens<(T0,)> for _0
impl<T0, T1> Lens<(T0, T1)> for _0
impl<T0, T1, T2> Lens<(T0, T1, T2)> for _0
impl<T0, T1, T2, T3> Lens<(T0, T1, T2, T3)> for _0
impl StructuralPartialEq for _0
Auto Trait Implementations§
impl Freeze for _0
impl RefUnwindSafe for _0
impl Send for _0
impl Sync for _0
impl Unpin for _0
impl UnwindSafe for _0
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