[][src]Struct structural::for_examples::Struct2

pub struct Struct2<A, B> {
    pub foo: Option<A>,
    pub bar: B,
}

Fields

foo: Option<A>bar: B

Trait Implementations

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

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

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

impl<A, B> FieldType<TStr<__TS<(__b, __a, __r)>>> for Struct2<A, B>[src]

type Ty = B

The type of the FieldPath field.

impl<A, B> FieldType<TStr<__TS<(__f, __o, __o)>>> for Struct2<A, B>[src]

type Ty = Option<A>

The type of the FieldPath field.

impl<A, B> GetField<TStr<__TS<(__b, __a, __r)>>> for Struct2<A, B>[src]

impl<A, B> GetField<TStr<__TS<(__f, __o, __o)>>> for Struct2<A, B>[src]

impl<A, B> GetFieldMut<TStr<__TS<(__b, __a, __r)>>> for Struct2<A, B>[src]

impl<A, B> GetFieldMut<TStr<__TS<(__f, __o, __o)>>> for Struct2<A, B>[src]

impl<A, B> IntoField<TStr<__TS<(__b, __a, __r)>>> for Struct2<A, B>[src]

impl<A, B> IntoField<TStr<__TS<(__f, __o, __o)>>> for Struct2<A, B>[src]

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

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

Fields

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

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

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

Auto Trait Implementations

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

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

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

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

impl<A, B> UnwindSafe for Struct2<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<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<T> SelfOps for T where
    T: ?Sized
[src]

impl<A, B, __This> Struct2_SI<A, B> for __This where
    __This: IntoFieldMut<TStr<__TS<(__f, __o, __o)>>, Ty = Option<A>, Ty = B> + IntoFieldMut<TStr<__TS<(__b, __a, __r)>>> + ?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