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