Struct optics::concrete::MapFallible
source · pub struct MapFallible<L, F, G>(/* private fields */);
Trait Implementations§
source§impl<T, L: AffineFold<T>, S, F, E, G> AffineFold<T> for MapFallible<L, F, G>
impl<T, L: AffineFold<T>, S, F, E, G> AffineFold<T> for MapFallible<L, F, G>
source§impl<'a, T: ?Sized, L: AffineFoldMut<'a, T>, S, F, E, G> AffineFoldMut<'a, T> for MapFallible<L, F, G>
impl<'a, T: ?Sized, L: AffineFoldMut<'a, T>, S, F, E, G> AffineFoldMut<'a, T> for MapFallible<L, F, G>
source§impl<'a, T: ?Sized, L: AffineFoldRef<'a, T>, S, F, E, G> AffineFoldRef<'a, T> for MapFallible<L, F, G>
impl<'a, T: ?Sized, L: AffineFoldRef<'a, T>, S, F, E, G> AffineFoldRef<'a, T> for MapFallible<L, F, G>
source§impl<T, L: AffineTraversal<T>, S, F, E, G> AffineTraversal<T> for MapFallible<L, F, G>
impl<T, L: AffineTraversal<T>, S, F, E, G> AffineTraversal<T> for MapFallible<L, F, G>
source§impl<T, L: Getter<T>, S, F, E, G> Getter<T> for MapFallible<L, F, G>
impl<T, L: Getter<T>, S, F, E, G> Getter<T> for MapFallible<L, F, G>
source§impl<'a, T: ?Sized, L: GetterMut<'a, T>, S, F, E, G> GetterMut<'a, T> for MapFallible<L, F, G>
impl<'a, T: ?Sized, L: GetterMut<'a, T>, S, F, E, G> GetterMut<'a, T> for MapFallible<L, F, G>
source§impl<'a, T: ?Sized, L: GetterRef<'a, T>, S, F, E, G> GetterRef<'a, T> for MapFallible<L, F, G>
impl<'a, T: ?Sized, L: GetterRef<'a, T>, S, F, E, G> GetterRef<'a, T> for MapFallible<L, F, G>
source§impl<L: OpticsFallible, S, F, E, G> OpticsFallible for MapFallible<L, F, G>
impl<L: OpticsFallible, S, F, E, G> OpticsFallible for MapFallible<L, F, G>
source§fn success_witness(&self) -> S
fn success_witness(&self) -> S
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, L: Review<T>, F, G> Review<T> for MapFallible<L, F, G>
impl<T, L: Review<T>, F, G> Review<T> for MapFallible<L, F, G>
source§impl<T, L: Setter<T>, F, G> Setter<T> for MapFallible<L, F, G>
impl<T, L: Setter<T>, F, G> Setter<T> for MapFallible<L, F, G>
source§impl<T, L: Traversal<T>, F, G> Traversal<T> for MapFallible<L, F, G>
impl<T, L: Traversal<T>, F, G> Traversal<T> for MapFallible<L, F, G>
impl<T, L: Iso<T>, S, F, E, G> Iso<T> for MapFallible<L, F, G>
impl<T, L: Lens<T>, S, F, E, G> Lens<T> for MapFallible<L, F, G>
impl<T, L: Prism<T>, S, F, E, G> Prism<T> for MapFallible<L, F, G>
Auto Trait Implementations§
impl<L, F, G> Freeze for MapFallible<L, F, G>
impl<L, F, G> RefUnwindSafe for MapFallible<L, F, G>
impl<L, F, G> Send for MapFallible<L, F, G>
impl<L, F, G> Sync for MapFallible<L, F, G>
impl<L, F, G> Unpin for MapFallible<L, F, G>
impl<L, F, G> UnwindSafe for MapFallible<L, F, G>
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