Struct repr_offset::for_examples::ReprAlign4
source · pub struct ReprAlign4<A = (), B = (), C = (), D = ()> { /* private fields */ }
Available on crate feature
for_examples
only.Expand description
An example #[repr(C, align(4))]
type
Implementations§
source§impl<A, B, C, D> ReprAlign4<A, B, C, D>
impl<A, B, C, D> ReprAlign4<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 ReprAlign4<A, B, C, D>
impl<A: Default, B: Default, C: Default, D: Default> Default for ReprAlign4<A, B, C, D>
source§fn default() -> ReprAlign4<A, B, C, D>
fn default() -> ReprAlign4<A, B, C, D>
Returns the “default value” for a type. Read more
source§impl<A, B, C, D> GetFieldOffset<TStr<(__a,)>> for ReprAlign4<A, B, C, D>
impl<A, B, C, D> GetFieldOffset<TStr<(__a,)>> for ReprAlign4<A, B, C, D>
source§impl<A, B, C, D> GetFieldOffset<TStr<(__b,)>> for ReprAlign4<A, B, C, D>
impl<A, B, C, D> GetFieldOffset<TStr<(__b,)>> for ReprAlign4<A, B, C, D>
source§impl<A, B, C, D> GetFieldOffset<TStr<(__c,)>> for ReprAlign4<A, B, C, D>
impl<A, B, C, D> GetFieldOffset<TStr<(__c,)>> for ReprAlign4<A, B, C, D>
source§impl<A, B, C, D> GetFieldOffset<TStr<(__d,)>> for ReprAlign4<A, B, C, D>
impl<A, B, C, D> GetFieldOffset<TStr<(__d,)>> for ReprAlign4<A, B, C, D>
impl<A, B, C, D> Copy for ReprAlign4<A, B, C, D>where A: Copy, B: Copy, C: Copy, D: Copy,
impl<A, B, C, D> ImplsGetFieldOffset for ReprAlign4<A, B, C, D>
Auto Trait Implementations§
impl<A, B, C, D> RefUnwindSafe for ReprAlign4<A, B, C, D>where A: RefUnwindSafe, B: RefUnwindSafe, C: RefUnwindSafe, D: RefUnwindSafe,
impl<A, B, C, D> Send for ReprAlign4<A, B, C, D>where A: Send, B: Send, C: Send, D: Send,
impl<A, B, C, D> Sync for ReprAlign4<A, B, C, D>where A: Sync, B: Sync, C: Sync, D: Sync,
impl<A, B, C, D> Unpin for ReprAlign4<A, B, C, D>where A: Unpin, B: Unpin, C: Unpin, D: Unpin,
impl<A, B, C, D> UnwindSafe for ReprAlign4<A, B, C, D>where A: UnwindSafe, B: UnwindSafe, C: UnwindSafe, D: UnwindSafe,
Blanket Implementations§
source§impl<T, F0, F1> GetFieldOffset<(F0, F1)> for Twhere
T: ImplsGetFieldOffset,
ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1)>,
impl<T, F0, F1> GetFieldOffset<(F0, F1)> for Twhere T: ImplsGetFieldOffset, ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1)>,
§type Type = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1)>>::Type
type Type = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1)>>::Type
The type of the field.
§type Alignment = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1)>>::Alignment
type Alignment = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1)>>::Alignment
Whether the field is: Read more
§type Privacy = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1)>>::Privacy
type Privacy = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1)>>::Privacy
Whether the field is private or not, either: Read more
source§const OFFSET_WITH_VIS: FieldOffsetWithVis<T, <T as GetFieldOffset<(F0, F1)>>::Privacy, (F0, F1), <T as GetFieldOffset<(F0, F1)>>::Type, <T as GetFieldOffset<(F0, F1)>>::Alignment> = const OFFSET_WITH_VIS:
FieldOffsetWithVis<Self, Self::Privacy, (F0, F1), Self::Type,
Self::Alignment> =
unsafe {
<ImplGetNestedFieldOffset<T> as
GetFieldOffset::<(F0, F1)>>::OFFSET_WITH_VIS.cast_struct()
};
const OFFSET_WITH_VIS: FieldOffsetWithVis<T, <T as GetFieldOffset<(F0, F1)>>::Privacy, (F0, F1), <T as GetFieldOffset<(F0, F1)>>::Type, <T as GetFieldOffset<(F0, F1)>>::Alignment> = const OFFSET_WITH_VIS: FieldOffsetWithVis<Self, Self::Privacy, (F0, F1), Self::Type, Self::Alignment> = unsafe { <ImplGetNestedFieldOffset<T> as GetFieldOffset::<(F0, F1)>>::OFFSET_WITH_VIS.cast_struct() };
The offset of the field.
source§impl<T, F0, F1, F2> GetFieldOffset<(F0, F1, F2)> for Twhere
T: ImplsGetFieldOffset,
ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2)>,
impl<T, F0, F1, F2> GetFieldOffset<(F0, F1, F2)> for Twhere T: ImplsGetFieldOffset, ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2)>,
§type Type = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2)>>::Type
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
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
type Privacy = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2)>>::Privacy
Whether the field is private or not, either: Read more
source§const OFFSET_WITH_VIS: FieldOffsetWithVis<T, <T as GetFieldOffset<(F0, F1, F2)>>::Privacy, (F0, F1, F2), <T as GetFieldOffset<(F0, F1, F2)>>::Type, <T as GetFieldOffset<(F0, F1, F2)>>::Alignment> = const OFFSET_WITH_VIS:
FieldOffsetWithVis<Self, Self::Privacy, (F0, F1, F2), Self::Type,
Self::Alignment> =
unsafe {
<ImplGetNestedFieldOffset<T> as
GetFieldOffset::<(F0, F1,
F2)>>::OFFSET_WITH_VIS.cast_struct()
};
const OFFSET_WITH_VIS: FieldOffsetWithVis<T, <T as GetFieldOffset<(F0, F1, F2)>>::Privacy, (F0, F1, F2), <T as GetFieldOffset<(F0, F1, F2)>>::Type, <T as GetFieldOffset<(F0, F1, F2)>>::Alignment> = const OFFSET_WITH_VIS: FieldOffsetWithVis<Self, Self::Privacy, (F0, F1, F2), Self::Type, Self::Alignment> = unsafe { <ImplGetNestedFieldOffset<T> as GetFieldOffset::<(F0, F1, F2)>>::OFFSET_WITH_VIS.cast_struct() };
The offset of the field.
source§impl<T, F0, F1, F2, F3> GetFieldOffset<(F0, F1, F2, F3)> for Twhere
T: ImplsGetFieldOffset,
ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2, F3)>,
impl<T, F0, F1, F2, F3> GetFieldOffset<(F0, F1, F2, F3)> for Twhere T: ImplsGetFieldOffset, ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2, F3)>,
§type Type = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3)>>::Type
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
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
type Privacy = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3)>>::Privacy
Whether the field is private or not, either: Read more
source§const OFFSET_WITH_VIS: FieldOffsetWithVis<T, <T as GetFieldOffset<(F0, F1, F2, F3)>>::Privacy, (F0, F1, F2, F3), <T as GetFieldOffset<(F0, F1, F2, F3)>>::Type, <T as GetFieldOffset<(F0, F1, F2, F3)>>::Alignment> = const OFFSET_WITH_VIS:
FieldOffsetWithVis<Self, Self::Privacy, (F0, F1, F2, F3), Self::Type,
Self::Alignment> =
unsafe {
<ImplGetNestedFieldOffset<T> as
GetFieldOffset::<(F0, F1, F2,
F3)>>::OFFSET_WITH_VIS.cast_struct()
};
const OFFSET_WITH_VIS: FieldOffsetWithVis<T, <T as GetFieldOffset<(F0, F1, F2, F3)>>::Privacy, (F0, F1, F2, F3), <T as GetFieldOffset<(F0, F1, F2, F3)>>::Type, <T as GetFieldOffset<(F0, F1, F2, F3)>>::Alignment> = const OFFSET_WITH_VIS: FieldOffsetWithVis<Self, Self::Privacy, (F0, F1, F2, F3), Self::Type, Self::Alignment> = unsafe { <ImplGetNestedFieldOffset<T> as GetFieldOffset::<(F0, F1, F2, F3)>>::OFFSET_WITH_VIS.cast_struct() };
The offset of the field.
source§impl<T, F0, F1, F2, F3, F4> GetFieldOffset<(F0, F1, F2, F3, F4)> for Twhere
T: ImplsGetFieldOffset,
ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2, F3, F4)>,
impl<T, F0, F1, F2, F3, F4> GetFieldOffset<(F0, F1, F2, F3, F4)> for Twhere T: ImplsGetFieldOffset, ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2, F3, F4)>,
§type Type = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3, F4)>>::Type
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
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
type Privacy = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3, F4)>>::Privacy
Whether the field is private or not, either: Read more
source§const OFFSET_WITH_VIS: FieldOffsetWithVis<T, <T as GetFieldOffset<(F0, F1, F2, F3, F4)>>::Privacy, (F0, F1, F2, F3, F4), <T as GetFieldOffset<(F0, F1, F2, F3, F4)>>::Type, <T as GetFieldOffset<(F0, F1, F2, F3, F4)>>::Alignment> = const OFFSET_WITH_VIS:
FieldOffsetWithVis<Self, Self::Privacy, (F0, F1, F2, F3, F4), Self::Type,
Self::Alignment> =
unsafe {
<ImplGetNestedFieldOffset<T> as
GetFieldOffset::<(F0, F1, F2, F3,
F4)>>::OFFSET_WITH_VIS.cast_struct()
};
const OFFSET_WITH_VIS: FieldOffsetWithVis<T, <T as GetFieldOffset<(F0, F1, F2, F3, F4)>>::Privacy, (F0, F1, F2, F3, F4), <T as GetFieldOffset<(F0, F1, F2, F3, F4)>>::Type, <T as GetFieldOffset<(F0, F1, F2, F3, F4)>>::Alignment> = const OFFSET_WITH_VIS: FieldOffsetWithVis<Self, Self::Privacy, (F0, F1, F2, F3, F4), Self::Type, Self::Alignment> = unsafe { <ImplGetNestedFieldOffset<T> as GetFieldOffset::<(F0, F1, F2, F3, F4)>>::OFFSET_WITH_VIS.cast_struct() };
The offset of the field.
source§impl<T, F0, F1, F2, F3, F4, F5> GetFieldOffset<(F0, F1, F2, F3, F4, F5)> for Twhere
T: ImplsGetFieldOffset,
ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2, F3, F4, F5)>,
impl<T, F0, F1, F2, F3, F4, F5> GetFieldOffset<(F0, F1, F2, F3, F4, F5)> for Twhere T: ImplsGetFieldOffset, ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2, F3, F4, F5)>,
§type Type = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3, F4, F5)>>::Type
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
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
type Privacy = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3, F4, F5)>>::Privacy
Whether the field is private or not, either: Read more
source§const OFFSET_WITH_VIS: FieldOffsetWithVis<T, <T as GetFieldOffset<(F0, F1, F2, F3, F4, F5)>>::Privacy, (F0, F1, F2, F3, F4, F5), <T as GetFieldOffset<(F0, F1, F2, F3, F4, F5)>>::Type, <T as GetFieldOffset<(F0, F1, F2, F3, F4, F5)>>::Alignment> = const OFFSET_WITH_VIS:
FieldOffsetWithVis<Self, Self::Privacy, (F0, F1, F2, F3, F4, F5),
Self::Type, Self::Alignment> =
unsafe {
<ImplGetNestedFieldOffset<T> as
GetFieldOffset::<(F0, F1, F2, F3, F4,
F5)>>::OFFSET_WITH_VIS.cast_struct()
};
const OFFSET_WITH_VIS: FieldOffsetWithVis<T, <T as GetFieldOffset<(F0, F1, F2, F3, F4, F5)>>::Privacy, (F0, F1, F2, F3, F4, F5), <T as GetFieldOffset<(F0, F1, F2, F3, F4, F5)>>::Type, <T as GetFieldOffset<(F0, F1, F2, F3, F4, F5)>>::Alignment> = const OFFSET_WITH_VIS: FieldOffsetWithVis<Self, Self::Privacy, (F0, F1, F2, F3, F4, F5), Self::Type, Self::Alignment> = unsafe { <ImplGetNestedFieldOffset<T> as GetFieldOffset::<(F0, F1, F2, F3, F4, F5)>>::OFFSET_WITH_VIS.cast_struct() };
The offset of the field.
source§impl<T, F0, F1, F2, F3, F4, F5, F6> GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6)> for Twhere
T: ImplsGetFieldOffset,
ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6)>,
impl<T, F0, F1, F2, F3, F4, F5, F6> GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6)> for Twhere T: ImplsGetFieldOffset, ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6)>,
§type Type = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6)>>::Type
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
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
type Privacy = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6)>>::Privacy
Whether the field is private or not, either: Read more
source§const OFFSET_WITH_VIS: FieldOffsetWithVis<T, <T as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6)>>::Privacy, (F0, F1, F2, F3, F4, F5, F6), <T as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6)>>::Type, <T as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6)>>::Alignment> = const OFFSET_WITH_VIS:
FieldOffsetWithVis<Self, Self::Privacy, (F0, F1, F2, F3, F4, F5, F6),
Self::Type, Self::Alignment> =
unsafe {
<ImplGetNestedFieldOffset<T> as
GetFieldOffset::<(F0, F1, F2, F3, F4, F5,
F6)>>::OFFSET_WITH_VIS.cast_struct()
};
const OFFSET_WITH_VIS: FieldOffsetWithVis<T, <T as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6)>>::Privacy, (F0, F1, F2, F3, F4, F5, F6), <T as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6)>>::Type, <T as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6)>>::Alignment> = const OFFSET_WITH_VIS: FieldOffsetWithVis<Self, Self::Privacy, (F0, F1, F2, F3, F4, F5, F6), Self::Type, Self::Alignment> = unsafe { <ImplGetNestedFieldOffset<T> as GetFieldOffset::<(F0, F1, F2, F3, F4, F5, F6)>>::OFFSET_WITH_VIS.cast_struct() };
The offset of the field.
source§impl<T, F0, F1, F2, F3, F4, F5, F6, F7> GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6, F7)> for Twhere
T: ImplsGetFieldOffset,
ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6, F7)>,
impl<T, F0, F1, F2, F3, F4, F5, F6, F7> GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6, F7)> for Twhere T: ImplsGetFieldOffset, ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6, F7)>,
§type Type = <ImplGetNestedFieldOffset<T> as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6, F7)>>::Type
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
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
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
source§const OFFSET_WITH_VIS: FieldOffsetWithVis<T, <T as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6, F7)>>::Privacy, (F0, F1, F2, F3, F4, F5, F6, F7), <T as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6, F7)>>::Type, <T as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6, F7)>>::Alignment> = const OFFSET_WITH_VIS:
FieldOffsetWithVis<Self, Self::Privacy, (F0, F1, F2, F3, F4, F5, F6, F7),
Self::Type, Self::Alignment> =
unsafe {
<ImplGetNestedFieldOffset<T> as
GetFieldOffset::<(F0, F1, F2, F3, F4, F5, F6,
F7)>>::OFFSET_WITH_VIS.cast_struct()
};
const OFFSET_WITH_VIS: FieldOffsetWithVis<T, <T as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6, F7)>>::Privacy, (F0, F1, F2, F3, F4, F5, F6, F7), <T as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6, F7)>>::Type, <T as GetFieldOffset<(F0, F1, F2, F3, F4, F5, F6, F7)>>::Alignment> = const OFFSET_WITH_VIS: FieldOffsetWithVis<Self, Self::Privacy, (F0, F1, F2, F3, F4, F5, F6, F7), Self::Type, Self::Alignment> = unsafe { <ImplGetNestedFieldOffset<T> as GetFieldOffset::<(F0, F1, F2, F3, F4, F5, F6, F7)>>::OFFSET_WITH_VIS.cast_struct() };
The offset of the field.
source§impl<FN, Ty> GetPubFieldOffset<FN> for Tywhere
Ty: GetFieldOffset<FN, Privacy = IsPublic>,
impl<FN, Ty> GetPubFieldOffset<FN> for Tywhere Ty: GetFieldOffset<FN, Privacy = IsPublic>,
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