[][src]Struct structural::for_examples::Tuple2

pub struct Tuple2<A, B>(pub Option<A>, pub B);

Trait Implementations

impl<A: Clone, B: Clone> Clone for Tuple2<A, B>[src]

impl<A: Copy, B: Copy> Copy for Tuple2<A, B>[src]

impl<A: Debug, B: Debug> Debug for Tuple2<A, B>[src]

impl<A, B> FieldType<TStr<__TS<(__0,)>>> for Tuple2<A, B>[src]

type Ty = Option<A>

The type of the FieldPath field.

impl<A, B> FieldType<TStr<__TS<(__1,)>>> for Tuple2<A, B>[src]

type Ty = B

The type of the FieldPath field.

impl<A, B> GetField<TStr<__TS<(__0,)>>> for Tuple2<A, B>[src]

impl<A, B> GetField<TStr<__TS<(__1,)>>> for Tuple2<A, B>[src]

impl<A, B> GetFieldMut<TStr<__TS<(__0,)>>> for Tuple2<A, B>[src]

impl<A, B> GetFieldMut<TStr<__TS<(__1,)>>> for Tuple2<A, B>[src]

impl<A, B> IntoField<TStr<__TS<(__0,)>>> for Tuple2<A, B>[src]

impl<A, B> IntoField<TStr<__TS<(__1,)>>> for Tuple2<A, B>[src]

impl<A: PartialEq, B: PartialEq> PartialEq<Tuple2<A, B>> for Tuple2<A, B>[src]

impl<A, B> Structural for Tuple2<A, B>[src]

Fields

Bound:IntoFieldMut<FP!(0),Ty= Option < A >>
The   0: Option < A > field   , with shared, mutable, and by value accessors

Bound:IntoFieldMut<FP!(1),Ty= B>
The   1: B field   , with shared, mutable, and by value accessors

impl<A, B> StructuralPartialEq for Tuple2<A, B>[src]

Auto Trait Implementations

impl<A, B> RefUnwindSafe for Tuple2<A, B> where
    A: RefUnwindSafe,
    B: RefUnwindSafe

impl<A, B> Send for Tuple2<A, B> where
    A: Send,
    B: Send

impl<A, B> Sync for Tuple2<A, B> where
    A: Sync,
    B: Sync

impl<A, B> Unpin for Tuple2<A, B> where
    A: Unpin,
    B: Unpin

impl<A, B> UnwindSafe for Tuple2<A, B> where
    A: UnwindSafe,
    B: UnwindSafe

Blanket Implementations

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

impl<This, T> Array0<T> for This where
    This: ?Sized
[src]

impl<This, V, T> Array0Variant<T, V> for This where
    This: ?Sized
[src]

impl<This, T> Array1<T> for This where
    This: IntoFieldMut<TStr<__TS<(__0,)>>, Ty = T> + ?Sized
[src]

impl<This, T> Array2<T> for This where
    This: IntoFieldMut<TStr<__TS<(__1,)>>, Ty = T, Ty = T> + IntoFieldMut<TStr<__TS<(__0,)>>> + ?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<This, F> IntoFieldMut<F> for This where
    This: IntoField<F> + GetFieldMut<F> + ?Sized
[src]

impl<'a, T, __This> RefWrapper_SI<'a, T> for __This where
    T: 'a,
    __This: IntoFieldMut<TStr<__TS<(__1,)>>, Ty = T, Ty = &'a T> + IntoFieldMut<TStr<__TS<(__0,)>>> + ?Sized
[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

The error type returned when the conversion fails.

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

type Type = T

The same type as Self. Read more