Struct repr_offset::for_examples::ReprCNoGFO [−][src]
This is supported on crate feature
for_examples
only.An example #[repr(C)]
type which doesn't implement GetFieldOffset
Fields
a: A
b: B
c: C
d: 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]
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 ReprCNoGFO<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 ReprCNoGFO<A, B, C, D>
[src]
fn default() -> 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]
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,
[src]
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,
[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, 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>,