pub struct AlignedType(/* private fields */);Expand description
A type whose alignment is greater equal that of any C type.
Allocations with this alignment are valid for all C types.
Remake of max_align_t from stddef.h.
16 bytes is the greatest alignment of any architecture Rust currently supports.
Trait Implementations§
Source§impl Clone for AlignedType
impl Clone for AlignedType
Source§fn clone(&self) -> AlignedType
fn clone(&self) -> AlignedType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for AlignedType
impl Default for AlignedType
Source§fn default() -> AlignedType
fn default() -> AlignedType
Returns the “default value” for a type. Read more
impl Copy for AlignedType
Auto Trait Implementations§
impl Freeze for AlignedType
impl RefUnwindSafe for AlignedType
impl Send for AlignedType
impl Sync for AlignedType
impl Unpin for AlignedType
impl UnwindSafe for AlignedType
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