#[repr(C)]pub struct Aligned<A, T> where
T: ?Sized, { /* private fields */ }
Expand description
A newtype with alignment of at least A
bytes
Trait Implementations
sourceimpl<A, T> AsMutSlice for Aligned<A, T> where
A: Alignment,
T: AsMutSlice,
impl<A, T> AsMutSlice for Aligned<A, T> where
A: Alignment,
T: AsMutSlice,
sourcefn as_mut_slice(&mut self) -> &mut [T::Element]
fn as_mut_slice(&mut self) -> &mut [T::Element]
Returns the mutable slice view of Self
sourceimpl<A, T> Ord for Aligned<A, T> where
A: Alignment,
T: Ord,
impl<A, T> Ord for Aligned<A, T> where
A: Alignment,
T: Ord,
sourceimpl<A, T> PartialOrd<Aligned<A, T>> for Aligned<A, T> where
A: Alignment,
T: PartialOrd,
impl<A, T> PartialOrd<Aligned<A, T>> for Aligned<A, T> where
A: Alignment,
T: PartialOrd,
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<A, T> Copy for Aligned<A, T> where
A: Alignment,
T: Copy,
impl<A, T> Eq for Aligned<A, T> where
A: Alignment,
T: Eq,
Auto Trait Implementations
impl<A, T: ?Sized> RefUnwindSafe for Aligned<A, T> where
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<A, T: ?Sized> Send for Aligned<A, T> where
A: Send,
T: Send,
impl<A, T: ?Sized> Sync for Aligned<A, T> where
A: Sync,
T: Sync,
impl<A, T: ?Sized> Unpin for Aligned<A, T> where
A: Unpin,
T: Unpin,
impl<A, T: ?Sized> UnwindSafe for Aligned<A, T> where
A: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more