Struct repr_offset::for_examples::ReprCNoGFO[][src]

#[repr(C)]pub struct ReprCNoGFO<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 which doesn't implement GetFieldOffset

Fields

a: Ab: Bc: Cd: D

Implementations

impl<A, B, C, D> ReprCNoGFO<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 ReprCNoGFO<A, B, C, D> where
    A: Copy,
    B: Copy,
    C: Copy,
    D: Copy
[src]

impl<A, B, C, D> Copy for ReprCNoGFO<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 ReprCNoGFO<A, B, C, D>[src]

Auto Trait Implementations

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

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

impl<A, B, C, D> Unpin for ReprCNoGFO<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, 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.