Struct lens_rs::_both[][src]

pub struct _both<Optic>(pub Optic);

build-in optics to traverse all fields of tuples(0~6), implemented Traversal

assert_eq!((1, 2).view(optics!(_both)), vec![1, 2])

Trait Implementations

impl<Optic> Clone for _both<Optic> where
    Optic: Clone
[src]

impl<Optic> Copy for _both<Optic> where
    Optic: Copy
[src]

impl<Optic> Debug for _both<Optic> where
    Optic: Debug
[src]

impl<Optic> Eq for _both<Optic> where
    Optic: Eq
[src]

impl<Ls: Clone, Image, A> Lens<_both<Ls>, Image> for (A,) where
    A: Lens<Ls, Image>, 
[src]

impl<Ls: Clone, Image: ?Sized, A> LensMut<_both<Ls>, Image> for (A,) where
    A: LensMut<Ls, Image>, 
[src]

impl<Ls: Clone, Image: ?Sized, A> LensRef<_both<Ls>, Image> for (A,) where
    A: LensRef<Ls, Image>, 
[src]

impl<Optic> PartialEq<_both<Optic>> for _both<Optic> where
    Optic: PartialEq<Optic>, 
[src]

impl<Pm: Clone, Image, A> Prism<_both<Pm>, Image> for (A,) where
    A: Prism<Pm, Image>, 
[src]

impl<Pm: Clone, Image: ?Sized, A> PrismMut<_both<Pm>, Image> for (A,) where
    A: PrismMut<Pm, Image>, 
[src]

impl<Pm: Clone, Image: ?Sized, A> PrismRef<_both<Pm>, Image> for (A,) where
    A: PrismRef<Pm, Image>, 
[src]

impl<Rv, Image, A> Review<_both<Rv>, Image> for (A,) where
    A: Review<Rv, Image>, 
[src]

impl<Optic> StructuralEq for _both<Optic>[src]

impl<Optic> StructuralPartialEq for _both<Optic>[src]

impl<Tr, Image, A> Traversal<_both<Tr>, Image> for (A,) where
    Tr: Clone,
    A: Traversal<Tr, Image>, 
[src]

impl<Tr, Image, A> Traversal<_both<Tr>, Image> for (A, A) where
    Tr: Clone,
    A: Traversal<Tr, Image>, 
[src]

impl<Tr, Image, A> Traversal<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: Traversal<Tr, Image>, 
[src]

impl<Tr, Image, A> Traversal<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: Traversal<Tr, Image>, 
[src]

impl<Tr, Image, A> Traversal<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: Traversal<Tr, Image>, 
[src]

impl<Tr, Image, A> Traversal<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: Traversal<Tr, Image>, 
[src]

impl<Tr, Image, A> Traversal<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: Traversal<Tr, Image>, 
[src]

impl<Tr, Image, A> Traversal<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: Traversal<Tr, Image>, 
[src]

impl<Tr, Image, A> Traversal<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: Traversal<Tr, Image>, 
[src]

impl<Tr, Image, A> Traversal<_both<Tr>, Image> for (A, A, A) where
    Tr: Clone,
    A: Traversal<Tr, Image>, 
[src]

impl<Tr, Image, A> Traversal<_both<Tr>, Image> for (A, A, A, A) where
    Tr: Clone,
    A: Traversal<Tr, Image>, 
[src]

impl<Tr, Image, A> Traversal<_both<Tr>, Image> for (A, A, A, A, A) where
    Tr: Clone,
    A: Traversal<Tr, Image>, 
[src]

impl<Tr, Image, A> Traversal<_both<Tr>, Image> for (A, A, A, A, A, A) where
    Tr: Clone,
    A: Traversal<Tr, Image>, 
[src]

impl<Tr, Image, A> Traversal<_both<Tr>, Image> for (A, A, A, A, A, A, A) where
    Tr: Clone,
    A: Traversal<Tr, Image>, 
[src]

impl<Tr, Image, A> Traversal<_both<Tr>, Image> for (A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: Traversal<Tr, Image>, 
[src]

impl<Tr, Image, A> Traversal<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: Traversal<Tr, Image>, 
[src]

impl<Tr, Image, A> Traversal<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: Traversal<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalMut<_both<Tr>, Image> for (A,) where
    Tr: Clone,
    A: TraversalMut<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalMut<_both<Tr>, Image> for (A, A) where
    Tr: Clone,
    A: TraversalMut<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalMut<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalMut<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalMut<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalMut<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalMut<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalMut<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalMut<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalMut<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalMut<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalMut<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalMut<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalMut<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalMut<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalMut<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalMut<_both<Tr>, Image> for (A, A, A) where
    Tr: Clone,
    A: TraversalMut<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalMut<_both<Tr>, Image> for (A, A, A, A) where
    Tr: Clone,
    A: TraversalMut<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalMut<_both<Tr>, Image> for (A, A, A, A, A) where
    Tr: Clone,
    A: TraversalMut<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalMut<_both<Tr>, Image> for (A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalMut<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalMut<_both<Tr>, Image> for (A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalMut<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalMut<_both<Tr>, Image> for (A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalMut<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalMut<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalMut<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalMut<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalMut<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalRef<_both<Tr>, Image> for (A,) where
    Tr: Clone,
    A: TraversalRef<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalRef<_both<Tr>, Image> for (A, A) where
    Tr: Clone,
    A: TraversalRef<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalRef<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalRef<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalRef<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalRef<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalRef<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalRef<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalRef<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalRef<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalRef<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalRef<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalRef<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalRef<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalRef<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalRef<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalRef<_both<Tr>, Image> for (A, A, A) where
    Tr: Clone,
    A: TraversalRef<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalRef<_both<Tr>, Image> for (A, A, A, A) where
    Tr: Clone,
    A: TraversalRef<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalRef<_both<Tr>, Image> for (A, A, A, A, A) where
    Tr: Clone,
    A: TraversalRef<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalRef<_both<Tr>, Image> for (A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalRef<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalRef<_both<Tr>, Image> for (A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalRef<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalRef<_both<Tr>, Image> for (A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalRef<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalRef<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalRef<Tr, Image>, 
[src]

impl<Tr, Image: ?Sized, A> TraversalRef<_both<Tr>, Image> for (A, A, A, A, A, A, A, A, A, A) where
    Tr: Clone,
    A: TraversalRef<Tr, Image>, 
[src]

Auto Trait Implementations

impl<Optic> RefUnwindSafe for _both<Optic> where
    Optic: RefUnwindSafe

impl<Optic> Send for _both<Optic> where
    Optic: Send

impl<Optic> Sync for _both<Optic> where
    Optic: Sync

impl<Optic> Unpin for _both<Optic> where
    Optic: Unpin

impl<Optic> UnwindSafe for _both<Optic> where
    Optic: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Prism<__, T> for T[src]

impl<T> PrismMut<__, T> for T where
    T: ?Sized
[src]

impl<T> PrismRef<__, T> for T where
    T: ?Sized
[src]

impl<Image, T> Review<__, Image> for T where
    T: From<Image>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> Traversal<__, T> for T[src]

impl<T> TraversalMut<__, T> for T where
    T: ?Sized
[src]

impl<T> TraversalRef<__, T> for T where
    T: ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.