[−][src]Struct repr_offset::for_examples::ReprAlign4
for_examples
only.An example #[repr(C, align(4))]
type
Fields
a: A
b: B
c: C
d: D
Implementations
impl<A, B, C, D> ReprAlign4<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 ReprAlign4<A, B, C, D> where
A: Copy,
B: Copy,
C: Copy,
D: Copy,
[src]
A: Copy,
B: Copy,
C: Copy,
D: Copy,
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A, B, C, D> Copy for ReprAlign4<A, B, C, D> where
A: Copy,
B: Copy,
C: Copy,
D: Copy,
[src]
A: Copy,
B: Copy,
C: Copy,
D: Copy,
impl<A: Default, B: Default, C: Default, D: Default> Default for ReprAlign4<A, B, C, D>
[src]
fn default() -> ReprAlign4<A, B, C, D>
[src]
impl<A, B, C, D> GetFieldOffset<TStr<(__a,)>> for ReprAlign4<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
const OFFSET_WITH_VIS: FieldOffsetWithVis<Self, IsPublic, TStr<(__a,)>, Self::Type, Aligned>
[src]
impl<A, B, C, D> GetFieldOffset<TStr<(__b,)>> for ReprAlign4<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
const OFFSET_WITH_VIS: FieldOffsetWithVis<Self, IsPublic, TStr<(__b,)>, Self::Type, Aligned>
[src]
impl<A, B, C, D> GetFieldOffset<TStr<(__c,)>> for ReprAlign4<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
const OFFSET_WITH_VIS: FieldOffsetWithVis<Self, IsPublic, TStr<(__c,)>, Self::Type, Aligned>
[src]
impl<A, B, C, D> GetFieldOffset<TStr<(__d,)>> for ReprAlign4<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
const OFFSET_WITH_VIS: FieldOffsetWithVis<Self, IsPublic, TStr<(__d,)>, Self::Type, Aligned>
[src]
impl<A, B, C, D> ImplsGetFieldOffset for ReprAlign4<A, B, C, D>
[src]
Auto Trait Implementations
impl<A, B, C, D> Send for ReprAlign4<A, B, C, D> where
A: Send,
B: Send,
C: Send,
D: Send,
[src]
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,
[src]
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,
[src]
A: Unpin,
B: Unpin,
C: Unpin,
D: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[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]
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
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
pub 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>
[src]
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]
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
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
pub 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>
[src]
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]
T: ImplsGetFieldOffset,
ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2, F3, F4, F5)>,
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
pub 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>
[src]
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]
T: ImplsGetFieldOffset,
ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2, F3, F4)>,
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
pub 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>
[src]
impl<T, F0, F1, F2, F3> GetFieldOffset<(F0, F1, F2, F3)> for T where
T: ImplsGetFieldOffset,
ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2, F3)>,
[src]
T: ImplsGetFieldOffset,
ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2, F3)>,
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
pub 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>
[src]
impl<T, F0, F1, F2> GetFieldOffset<(F0, F1, F2)> for T where
T: ImplsGetFieldOffset,
ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2)>,
[src]
T: ImplsGetFieldOffset,
ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1, F2)>,
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
pub 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>
[src]
impl<T, F0, F1> GetFieldOffset<(F0, F1)> for T where
T: ImplsGetFieldOffset,
ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1)>,
[src]
T: ImplsGetFieldOffset,
ImplGetNestedFieldOffset<T>: GetFieldOffset<(F0, F1)>,
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
pub 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>
[src]
impl<FN, Ty> GetPubFieldOffset<FN> for Ty where
Ty: GetFieldOffset<FN, Privacy = IsPublic>,
[src]
Ty: GetFieldOffset<FN, Privacy = IsPublic>,
const OFFSET: FieldOffset<Self, Self::Type, Self::Alignment>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<S> ROExtAcc for S
[src]
pub fn f_get<F>(&Self, FieldOffset<S, F, Aligned>) -> &F
[src]
pub fn f_get_mut<F>(&mut Self, FieldOffset<S, F, Aligned>) -> &mut F
[src]
pub fn f_get_ptr<F, A>(&Self, FieldOffset<S, F, A>) -> *const F
[src]
pub fn f_get_mut_ptr<F, A>(&mut Self, FieldOffset<S, F, A>) -> *mut F
[src]
impl<S> ROExtOps<Aligned> for S
[src]
pub fn f_replace<F>(&mut Self, FieldOffset<S, F, Aligned>, F) -> F
[src]
pub fn f_swap<F>(&mut Self, FieldOffset<S, F, Aligned>, &mut S)
[src]
pub fn f_get_copy<F>(&Self, FieldOffset<S, F, Aligned>) -> F where
F: Copy,
[src]
F: Copy,
impl<S> ROExtOps<Unaligned> for S
[src]
pub fn f_replace<F>(&mut Self, FieldOffset<S, F, Unaligned>, F) -> F
[src]
pub fn f_swap<F>(&mut Self, FieldOffset<S, F, Unaligned>, &mut S)
[src]
pub fn f_get_copy<F>(&Self, FieldOffset<S, F, Unaligned>) -> F where
F: Copy,
[src]
F: Copy,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,