Struct repr_offset::alignment::Unaligned
source · pub struct Unaligned;
Expand description
A marker type representing that a FieldOffset
is for a (potentially) unaligned field.
Trait Implementations§
source§impl<A: Alignment> CombineAlignment<A> for Unaligned
impl<A: Alignment> CombineAlignment<A> for Unaligned
source§impl<S> ROExtRawMutOps<Unaligned> for *mut S
impl<S> ROExtRawMutOps<Unaligned> for *mut S
source§unsafe fn f_write<F>(
self,
offset: FieldOffset<Self::Target, F, Unaligned>,
value: F,
)
unsafe fn f_write<F>( self, offset: FieldOffset<Self::Target, F, Unaligned>, 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, Unaligned>,
source: *const Self::Target,
)
unsafe fn f_copy_from<F>( self, offset: FieldOffset<Self::Target, F, Unaligned>, source: *const Self::Target, )
source§unsafe fn f_copy_from_nonoverlapping<F>(
self,
offset: FieldOffset<Self::Target, F, Unaligned>,
source: *const Self::Target,
)
unsafe fn f_copy_from_nonoverlapping<F>( self, offset: FieldOffset<Self::Target, F, Unaligned>, source: *const Self::Target, )
source§unsafe fn f_replace_raw<F>(
self,
offset: FieldOffset<Self::Target, F, Unaligned>,
value: F,
) -> F
unsafe fn f_replace_raw<F>( self, offset: FieldOffset<Self::Target, F, Unaligned>, 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, Unaligned>,
right: *mut Self::Target,
)
unsafe fn f_swap_raw<F>( self, offset: FieldOffset<Self::Target, F, Unaligned>, right: *mut Self::Target, )
source§unsafe fn f_swap_nonoverlapping<F>(
self,
offset: FieldOffset<Self::Target, F, Unaligned>,
right: *mut Self::Target,
)
unsafe fn f_swap_nonoverlapping<F>( self, offset: FieldOffset<Self::Target, F, Unaligned>, 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<Unaligned> for *const S
impl<S> ROExtRawOps<Unaligned> for *const S
source§unsafe fn f_read_copy<F>(
self,
offset: FieldOffset<Self::Target, F, Unaligned>,
) -> Fwhere
F: Copy,
unsafe fn f_read_copy<F>(
self,
offset: FieldOffset<Self::Target, F, Unaligned>,
) -> Fwhere
F: Copy,
source§impl<S> ROExtRawOps<Unaligned> for *mut S
impl<S> ROExtRawOps<Unaligned> for *mut S
source§unsafe fn f_read_copy<F>(
self,
offset: FieldOffset<Self::Target, F, Unaligned>,
) -> Fwhere
F: Copy,
unsafe fn f_read_copy<F>(
self,
offset: FieldOffset<Self::Target, F, Unaligned>,
) -> Fwhere
F: Copy,
impl Alignment for Unaligned
impl Copy for Unaligned
Auto Trait Implementations§
impl Freeze for Unaligned
impl RefUnwindSafe for Unaligned
impl Send for Unaligned
impl Sync for Unaligned
impl Unpin for Unaligned
impl UnwindSafe for Unaligned
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