pub struct _Identity<T: ?Sized>(/* private fields */);
Expand description
Identity optics, explicit about source and view types.
Trait Implementations§
source§impl<T> AffineFold<T> for _Identity<T>
impl<T> AffineFold<T> for _Identity<T>
source§impl<'a, T: ?Sized + 'a> AffineFoldMut<'a, T> for _Identity<T>
impl<'a, T: ?Sized + 'a> AffineFoldMut<'a, T> for _Identity<T>
source§impl<'a, T: ?Sized + 'a> AffineFoldRef<'a, T> for _Identity<T>
impl<'a, T: ?Sized + 'a> AffineFoldRef<'a, T> for _Identity<T>
source§impl<T> AffineTraversal<T> for _Identity<T>
impl<T> AffineTraversal<T> for _Identity<T>
source§impl<T: ?Sized> OpticsFallible for _Identity<T>
impl<T: ?Sized> OpticsFallible for _Identity<T>
source§fn success_witness(&self) -> _Identity<T>
fn success_witness(&self) -> _Identity<T>
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<T: ?Sized> OpticsKnownSource for _Identity<T>
impl<T: ?Sized> OpticsKnownSource for _Identity<T>
source§impl<T: ?Sized> PartialEq for _Identity<T>
impl<T: ?Sized> PartialEq for _Identity<T>
source§impl<T> Traversal<T> for _Identity<T>
impl<T> Traversal<T> for _Identity<T>
impl<T: ?Sized> Copy for _Identity<T>
impl<T: ?Sized> Eq for _Identity<T>
impl<T> Iso<T> for _Identity<T>
impl<T> Lens<T> for _Identity<T>
impl<T> Prism<T> for _Identity<T>
Auto Trait Implementations§
impl<T> Freeze for _Identity<T>where
T: ?Sized,
impl<T> RefUnwindSafe for _Identity<T>where
T: ?Sized,
impl<T> Send for _Identity<T>where
T: ?Sized,
impl<T> Sync for _Identity<T>where
T: ?Sized,
impl<T> Unpin for _Identity<T>where
T: ?Sized,
impl<T> UnwindSafe for _Identity<T>where
T: ?Sized,
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