pub struct Aligned;
Expand description

A marker type representing that a FieldOffset is for an aligned field.

Trait Implementations§

source§

impl Clone for Aligned

source§

fn clone(&self) -> Aligned

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<A: Alignment> CombineAlignment<A> for Aligned

§

type Output = A

This is Aligned if both Self and the Rhs parameter are Aligned, otherwise it is Unaligned.
source§

impl Debug for Aligned

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<S> ROExtRawMutOps<Aligned> for *mut S

source§

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 more
source§

unsafe fn f_copy_from<F>( self, offset: FieldOffset<Self::Target, F, Aligned>, source: *const Self::Target )

Copies a field (determined by offset) from source to self. Read more
source§

unsafe fn f_copy_from_nonoverlapping<F>( self, offset: FieldOffset<Self::Target, F, Aligned>, source: *const Self::Target )

Copies a field (determined by offset) from source to self. Read more
source§

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 more
source§

unsafe fn f_swap_raw<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. Read more
source§

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 more
source§

impl<S> ROExtRawOps<Aligned> for *const S

source§

unsafe fn f_read_copy<F>( self, offset: FieldOffset<Self::Target, F, Aligned> ) -> Fwhere F: Copy,

Copies a field (determined by offset) from self. Read more
source§

unsafe fn f_read<F>(self, offset: FieldOffset<Self::Target, F, Aligned>) -> F

Reads a copy of a field (determined by offset) from self, without mutating or moving the field. Read more
source§

impl<S> ROExtRawOps<Aligned> for *mut S

source§

unsafe fn f_read_copy<F>( self, offset: FieldOffset<Self::Target, F, Aligned> ) -> Fwhere F: Copy,

Copies a field (determined by offset) from self. Read more
source§

unsafe fn f_read<F>(self, offset: FieldOffset<Self::Target, F, Aligned>) -> F

Reads a copy of a field (determined by offset) from self, without mutating or moving the field. Read more
source§

impl Alignment for Aligned

source§

impl Copy for Aligned

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<S> ROExtAcc for S

source§

fn f_get<F>(&self, offset: FieldOffset<S, F, Aligned>) -> &F

Gets a reference to a field, determined by offset. Read more
source§

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 more
source§

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 more
source§

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 more
source§

impl<S> ROExtOps<Aligned> for S

source§

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 more
source§

fn f_swap<F>(&mut self, offset: FieldOffset<S, F, Aligned>, right: &mut S)

Swaps a field (determined by offset) with the same field in right. Read more
source§

fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Aligned>) -> Fwhere F: Copy,

Gets a copy of a field (determined by offset). The field is determined by offset. Read more
source§

impl<S> ROExtOps<Unaligned> for S

source§

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
source§

fn f_swap<F>(&mut self, offset: FieldOffset<S, F, Unaligned>, right: &mut S)

Swaps a field (determined by offset) with the same field in right. Read more
source§

fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Unaligned>) -> Fwhere F: Copy,

Gets a copy of a field (determined by offset). The field is determined by offset. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.