Struct repr_offset::for_examples::ReprCNoGFO
source · pub struct ReprCNoGFO<A = (), B = (), C = (), D = ()> { /* private fields */ }
Available on crate feature
for_examples
only.Expand description
An example #[repr(C)]
type which doesn’t implement GetFieldOffset
Implementations§
source§impl<A, B, C, D> ReprCNoGFO<A, B, C, D>
impl<A, B, C, D> ReprCNoGFO<A, B, C, D>
sourcepub const OFFSET_A: FieldOffset<Self, A, Aligned> = _
pub const OFFSET_A: FieldOffset<Self, A, Aligned> = _
The offset of the a
field
sourcepub const OFFSET_B: FieldOffset<Self, B, Aligned> = _
pub const OFFSET_B: FieldOffset<Self, B, Aligned> = _
The offset of the b
field
sourcepub const OFFSET_C: FieldOffset<Self, C, Aligned> = _
pub const OFFSET_C: FieldOffset<Self, C, Aligned> = _
The offset of the c
field
sourcepub const OFFSET_D: FieldOffset<Self, D, Aligned> = _
pub const OFFSET_D: FieldOffset<Self, D, Aligned> = _
The offset of the d
field
Trait Implementations§
source§impl<A: Default, B: Default, C: Default, D: Default> Default for ReprCNoGFO<A, B, C, D>
impl<A: Default, B: Default, C: Default, D: Default> Default for ReprCNoGFO<A, B, C, D>
source§fn default() -> ReprCNoGFO<A, B, C, D>
fn default() -> ReprCNoGFO<A, B, C, D>
Returns the “default value” for a type. Read more
impl<A, B, C, D> Copy for ReprCNoGFO<A, B, C, D>where A: Copy, B: Copy, C: Copy, D: Copy,
Auto Trait Implementations§
impl<A, B, C, D> RefUnwindSafe for ReprCNoGFO<A, B, C, D>where A: RefUnwindSafe, B: RefUnwindSafe, C: RefUnwindSafe, D: RefUnwindSafe,
impl<A, B, C, D> Send for ReprCNoGFO<A, B, C, D>where A: Send, B: Send, C: Send, D: Send,
impl<A, B, C, D> Sync for ReprCNoGFO<A, B, C, D>where A: Sync, B: Sync, C: Sync, D: Sync,
impl<A, B, C, D> Unpin for ReprCNoGFO<A, B, C, D>where A: Unpin, B: Unpin, C: Unpin, D: Unpin,
impl<A, B, C, D> UnwindSafe for ReprCNoGFO<A, B, C, D>where A: UnwindSafe, B: UnwindSafe, C: UnwindSafe, D: UnwindSafe,
Blanket Implementations§
source§impl<S> ROExtAcc for S
impl<S> ROExtAcc for S
source§fn f_get<F>(&self, offset: FieldOffset<S, F, Aligned>) -> &F
fn f_get<F>(&self, offset: FieldOffset<S, F, Aligned>) -> &F
Gets a reference to a field, determined by
offset
. Read moresource§fn f_get_mut<F>(&mut self, offset: FieldOffset<S, F, Aligned>) -> &mut F
fn f_get_mut<F>(&mut self, offset: FieldOffset<S, F, Aligned>) -> &mut F
Gets a muatble reference to a field, determined by
offset
. Read moresource§fn f_get_ptr<F, A>(&self, offset: FieldOffset<S, F, A>) -> *const F
fn f_get_ptr<F, A>(&self, offset: FieldOffset<S, F, A>) -> *const F
Gets a const pointer to a field,
the field is determined by
offset
. Read moresource§fn f_get_mut_ptr<F, A>(&mut self, offset: FieldOffset<S, F, A>) -> *mut F
fn f_get_mut_ptr<F, A>(&mut self, offset: FieldOffset<S, F, A>) -> *mut F
Gets a mutable pointer to a field, determined by
offset
. Read moresource§impl<S> ROExtOps<Aligned> for S
impl<S> ROExtOps<Aligned> for S
source§fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Aligned>, value: F) -> F
fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Aligned>, value: F) -> F
Replaces a field (determined by
offset
) with value
,
returning the previous value of the field. Read moresource§fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Aligned>) -> Fwhere
F: Copy,
fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Aligned>) -> Fwhere F: Copy,
source§impl<S> ROExtOps<Unaligned> for S
impl<S> ROExtOps<Unaligned> for S
source§fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Unaligned>, value: F) -> F
fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Unaligned>, value: F) -> F
Replaces a field (determined by
offset
) with value
,
returning the previous value of the field. Read more