Struct ConstAlign
pub struct ConstAlign<const ALIGN: usize>;
Type wrapping a compile-time alignment value.
Trait Implementations
impl<const ALIGN: usize> Alignment for ConstAlign<ALIGN>
fn new(align: usize, minimum_align: usize) -> Selffn alignment(self, minimum_align: usize) -> usize
impl<const ALIGN: usize> Clone for ConstAlign<ALIGN>
fn clone(&self) -> ConstAlign<ALIGN>
impl<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> UnsafeUnpin for ConstAlign<ALIGN>
impl<const ALIGN: usize> UnwindSafe for ConstAlign<ALIGN>
Blanket Implementations
impl<T> Any for ConstAlign<ALIGN>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ConstAlign<ALIGN>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ConstAlign<ALIGN>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ConstAlign<ALIGN>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ConstAlign<ALIGN>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for ConstAlign<ALIGN>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for ConstAlign<ALIGN>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ConstAlign<ALIGN>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for ConstAlign<ALIGN>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>