Trait optics::traits::Iso

source ·
pub trait Iso<T>: Getter<T> + Review<T> + Lens<T> + Prism<T>
where Self::View: Sized,
{ }
Expand description

Isomorphisms: getter and review.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<L: Iso<T>, T> Iso<T> for &L
where Self::View: Sized,

Implementors§

source§

impl<K, L, T> Iso<T> for Compose<K, L>
where K: Iso<T>, K::View: Sized, L: Iso<K::View>, L::View: Sized,

source§

impl<T> Iso<T> for Identity

source§

impl<T> Iso<T> for _Identity<T>

source§

impl<T, L: Iso<T>, S, F, E, G> Iso<T> for MapFallible<L, F, G>
where F: Fn(L::Success) -> S, G: Fn(L::Error) -> E, L::View: Sized,