Trait optics::traits::Prism

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

Prism: review and setter.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

Implementors§

source§

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

source§

impl<T> Prism<Option<T>> for _Some

source§

impl<T> Prism<T> for Identity

source§

impl<T> Prism<T> for _Identity<T>

source§

impl<T, E> Prism<Result<T, E>> for _Err

source§

impl<T, E> Prism<Result<T, E>> for _Ok

source§

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