Trait lens_rs::traits::Review [−][src]
A trait representing the optics describes how to construct a single value.
Example
use lens_rs::*; let optic = optics!(Ok.Err.Some); let nested: Result<Result<(), _>, ()> = optic.review((1,2,3)); assert_eq!(nested, Ok(Err(Some((1,2,3)))));
Associated Types
Loading content...Required methods
Loading content...Implementors
impl<Rv, A> Review<(A,)> for _0<Rv> where
Rv: Review<A>,
[src]
Rv: Review<A>,
impl<Rv, A> Review<(A,)> for _both<Rv> where
Rv: Review<A>,
[src]
Rv: Review<A>,
impl<Rv, T> Review<Option<T>> for None<Rv> where
Rv: Review<()>,
[src]
Rv: Review<()>,
impl<Rv, T> Review<Option<T>> for Some<Rv> where
Rv: Review<T>,
[src]
Rv: Review<T>,
impl<Rv, T> Review<Box<T, Global>> for _box<Rv> where
Rv: Review<T>,
[src]
Rv: Review<T>,
impl<Rv, T> Review<Rc<T>> for _rc<Rv> where
Rv: Review<T>,
[src]
Rv: Review<T>,
impl<Rv, T> Review<Arc<T>> for _arc<Rv> where
Rv: Review<T>,
[src]
Rv: Review<T>,
impl<Rv, T, E> Review<Result<T, E>> for Err<Rv> where
Rv: Review<E>,
[src]
Rv: Review<E>,
impl<Rv, T, E> Review<Result<T, E>> for Ok<Rv> where
Rv: Review<T>,
[src]
Rv: Review<T>,