[][src]Struct repr_offset::for_examples::ReprC

#[repr(C)]pub struct ReprC<A = (), B = (), C = (), D = ()> {
    pub a: A,
    pub b: B,
    pub c: C,
    pub d: D,
}
This is supported on crate feature for_examples only.

An example #[repr(C)] type

Fields

a: Ab: Bc: Cd: D

Implementations

impl<A, B, C, D> ReprC<A, B, C, D>[src]

pub const OFFSET_A: FieldOffset<Self, A, Aligned>[src]

The offset of the a field

pub const OFFSET_B: FieldOffset<Self, B, Aligned>[src]

The offset of the b field

pub const OFFSET_C: FieldOffset<Self, C, Aligned>[src]

The offset of the c field

pub const OFFSET_D: FieldOffset<Self, D, Aligned>[src]

The offset of the d field

Trait Implementations

impl<A, B, C, D> Clone for ReprC<A, B, C, D> where
    A: Copy,
    B: Copy,
    C: Copy,
    D: Copy
[src]

impl<A, B, C, D> Copy for ReprC<A, B, C, D> where
    A: Copy,
    B: Copy,
    C: Copy,
    D: Copy
[src]

impl<A: Default, B: Default, C: Default, D: Default> Default for ReprC<A, B, C, D>[src]

impl<A, B, C, D> GetFieldOffset<TStr<(__a,)>> for ReprC<A, B, C, D>[src]

type Type = A

The type of the field.

type Alignment = Aligned

Whether the field is: Read more

type Privacy = IsPublic

Whether the field is private or not, either: Read more

impl<A, B, C, D> GetFieldOffset<TStr<(__b,)>> for ReprC<A, B, C, D>[src]

type Type = B

The type of the field.

type Alignment = Aligned

Whether the field is: Read more

type Privacy = IsPublic

Whether the field is private or not, either: Read more

impl<A, B, C, D> GetFieldOffset<TStr<(__c,)>> for ReprC<A, B, C, D>[src]

type Type = C

The type of the field.

type Alignment = Aligned

Whether the field is: Read more

type Privacy = IsPublic

Whether the field is private or not, either: Read more

impl<A, B, C, D> GetFieldOffset<TStr<(__d,)>> for ReprC<A, B, C, D>[src]

type Type = D

The type of the field.

type Alignment = Aligned

Whether the field is: Read more

type Privacy = IsPublic

Whether the field is private or not, either: Read more

impl<A, B, C, D> ImplsGetFieldOffset for ReprC<A, B, C, D>[src]

Auto Trait Implementations

impl<A, B, C, D> Send for ReprC<A, B, C, D> where
    A: Send,
    B: Send,
    C: Send,
    D: Send
[src]

impl<A, B, C, D> Sync for ReprC<A, B, C, D> where
    A: Sync,
    B: Sync,
    C: Sync,
    D: Sync
[src]

impl<A, B, C, D> Unpin for ReprC<A, B, C, D> where
    A: Unpin,
    B: Unpin,
    C: Unpin,
    D: Unpin
[src]

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, F0, F1, F2, F3, F4, F5, F6, F7> GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6, F7)> for T where
    T: ImplsGetFieldOffset,
    ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6, F7)>, 
[src]

type Type = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6, F7)>>::Type

The type of the field.

type Alignment = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6, F7)>>::Alignment

Whether the field is: Read more

type Privacy = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6, F7)>>::Privacy

Whether the field is private or not, either: Read more

impl<T, F0, F1, F2, F3, F4, F5, F6> GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6)> for T where
    T: ImplsGetFieldOffset,
    ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6)>, 
[src]

type Type = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6)>>::Type

The type of the field.

type Alignment = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6)>>::Alignment

Whether the field is: Read more

type Privacy = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6)>>::Privacy

Whether the field is private or not, either: Read more

impl<T, F0, F1, F2, F3, F4, F5> GetFieldOffset<(F0, F1, F2, F3, F4, F5)> for T where
    T: ImplsGetFieldOffset,
    ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2, F3, F4, F5)>, 
[src]

type Type = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3, F4, F5)>>::Type

The type of the field.

type Alignment = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3, F4, F5)>>::Alignment

Whether the field is: Read more

type Privacy = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3, F4, F5)>>::Privacy

Whether the field is private or not, either: Read more

impl<T, F0, F1, F2, F3, F4> GetFieldOffset<(F0, F1, F2, F3, F4)> for T where
    T: ImplsGetFieldOffset,
    ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2, F3, F4)>, 
[src]

type Type = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3, F4)>>::Type

The type of the field.

type Alignment = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3, F4)>>::Alignment

Whether the field is: Read more

type Privacy = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3, F4)>>::Privacy

Whether the field is private or not, either: Read more

impl<T, F0, F1, F2, F3> GetFieldOffset<(F0, F1, F2, F3)> for T where
    T: ImplsGetFieldOffset,
    ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2, F3)>, 
[src]

type Type = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3)>>::Type

The type of the field.

type Alignment = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3)>>::Alignment

Whether the field is: Read more

type Privacy = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3)>>::Privacy

Whether the field is private or not, either: Read more

impl<T, F0, F1, F2> GetFieldOffset<(F0, F1, F2)> for T where
    T: ImplsGetFieldOffset,
    ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2)>, 
[src]

type Type = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2)>>::Type

The type of the field.

type Alignment = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2)>>::Alignment

Whether the field is: Read more

type Privacy = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2)>>::Privacy

Whether the field is private or not, either: Read more

impl<T, F0, F1> GetFieldOffset<(F0, F1)> for T where
    T: ImplsGetFieldOffset,
    ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1)>, 
[src]

type Type = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1)>>::Type

The type of the field.

type Alignment = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1)>>::Alignment

Whether the field is: Read more

type Privacy = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1)>>::Privacy

Whether the field is private or not, either: Read more

impl<FN, Ty> GetPubFieldOffset<FN> for Ty where
    Ty: GetFieldOffset<FN, Privacy = IsPublic>, 
[src]

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

impl<S> ROExtAcc for S[src]

impl<S> ROExtOps<Aligned> for S[src]

impl<S> ROExtOps<Unaligned> for S[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.