Struct lens_rs_generator::_both[][src]

pub struct _both<Optic>(pub Optic);

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> Clone for _both<Optic>[src]

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

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

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

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

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

impl<Optic> StructuralPartialEq for _both<Optic>[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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.