Struct aligned_vec::ConstAlign
source · pub struct ConstAlign<const ALIGN: usize>;
Expand description
Type wrapping a compile-time alignment value.
Trait Implementations§
source§impl<const ALIGN: usize> Alignment for ConstAlign<ALIGN>
impl<const ALIGN: usize> Alignment for ConstAlign<ALIGN>
source§impl<const ALIGN: usize> Clone for ConstAlign<ALIGN>
impl<const ALIGN: usize> Clone for ConstAlign<ALIGN>
source§fn clone(&self) -> ConstAlign<ALIGN>
fn clone(&self) -> ConstAlign<ALIGN>
Returns a copy 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 moreimpl<const ALIGN: usize> Copy for ConstAlign<ALIGN>
Auto Trait Implementations§
impl<const ALIGN: usize> Freeze for ConstAlign<ALIGN>
impl<const ALIGN: usize> RefUnwindSafe for ConstAlign<ALIGN>
impl<const ALIGN: usize> Send for ConstAlign<ALIGN>
impl<const ALIGN: usize> Sync for ConstAlign<ALIGN>
impl<const ALIGN: usize> Unpin for ConstAlign<ALIGN>
impl<const ALIGN: usize> UnwindSafe for ConstAlign<ALIGN>
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)