Struct repr_offset::alignment::Aligned
source · pub struct Aligned;
Expand description
A marker type representing that a FieldOffset
is for an aligned field.
Trait Implementations§
source§impl<A: Alignment> CombineAlignment<A> for Aligned
impl<A: Alignment> CombineAlignment<A> for Aligned
source§impl<S> ROExtRawMutOps<Aligned> for *mut S
impl<S> ROExtRawMutOps<Aligned> for *mut S
source§unsafe fn f_write<F>(
self,
offset: FieldOffset<Self::Target, F, Aligned>,
value: F,
)
unsafe fn f_write<F>( self, offset: FieldOffset<Self::Target, F, Aligned>, value: F, )
Overwrites the value of a field (determined by
offset
) from self
,
without dropping the previous value. Read moresource§unsafe fn f_copy_from<F>(
self,
offset: FieldOffset<Self::Target, F, Aligned>,
source: *const Self::Target,
)
unsafe fn f_copy_from<F>( self, offset: FieldOffset<Self::Target, F, Aligned>, source: *const Self::Target, )
source§unsafe fn f_copy_from_nonoverlapping<F>(
self,
offset: FieldOffset<Self::Target, F, Aligned>,
source: *const Self::Target,
)
unsafe fn f_copy_from_nonoverlapping<F>( self, offset: FieldOffset<Self::Target, F, Aligned>, source: *const Self::Target, )
source§unsafe fn f_replace_raw<F>(
self,
offset: FieldOffset<Self::Target, F, Aligned>,
value: F,
) -> F
unsafe fn f_replace_raw<F>( self, offset: FieldOffset<Self::Target, F, Aligned>, value: F, ) -> F
Replaces a field (determined by
offset
) with value
,
returning the previous value of the field. Read moresource§unsafe fn f_swap_raw<F>(
self,
offset: FieldOffset<Self::Target, F, Aligned>,
right: *mut Self::Target,
)
unsafe fn f_swap_raw<F>( self, offset: FieldOffset<Self::Target, F, Aligned>, right: *mut Self::Target, )
source§unsafe fn f_swap_nonoverlapping<F>(
self,
offset: FieldOffset<Self::Target, F, Aligned>,
right: *mut Self::Target,
)
unsafe fn f_swap_nonoverlapping<F>( self, offset: FieldOffset<Self::Target, F, Aligned>, right: *mut Self::Target, )
Swaps a field (determined by
offset
) from self
with the same field in right
.
self
and right
must not overlap. Read moresource§impl<S> ROExtRawOps<Aligned> for *const S
impl<S> ROExtRawOps<Aligned> for *const S
source§unsafe fn f_read_copy<F>(
self,
offset: FieldOffset<Self::Target, F, Aligned>,
) -> Fwhere
F: Copy,
unsafe fn f_read_copy<F>(
self,
offset: FieldOffset<Self::Target, F, Aligned>,
) -> Fwhere
F: Copy,
source§impl<S> ROExtRawOps<Aligned> for *mut S
impl<S> ROExtRawOps<Aligned> for *mut S
source§unsafe fn f_read_copy<F>(
self,
offset: FieldOffset<Self::Target, F, Aligned>,
) -> Fwhere
F: Copy,
unsafe fn f_read_copy<F>(
self,
offset: FieldOffset<Self::Target, F, Aligned>,
) -> Fwhere
F: Copy,
impl Alignment for Aligned
impl Copy for Aligned
Auto Trait Implementations§
impl Freeze for Aligned
impl RefUnwindSafe for Aligned
impl Send for Aligned
impl Sync for Aligned
impl Unpin for Aligned
impl UnwindSafe for Aligned
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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