pub struct Aligned16K<T: Sized>(/* private fields */);Expand description
A wrapper type for aligning a value to 16K bytes.
Implementations§
Source§impl<T: Sized> Aligned16K<T>
impl<T: Sized> Aligned16K<T>
Sourcepub const fn new(value: T) -> Self
pub const fn new(value: T) -> Self
Creates a new Aligned16K instance with the given value.
Trait Implementations§
Source§impl<T> Deref for Aligned16K<T>
impl<T> Deref for Aligned16K<T>
Auto Trait Implementations§
impl<T> Freeze for Aligned16K<T>where
T: Freeze,
impl<T> RefUnwindSafe for Aligned16K<T>where
T: RefUnwindSafe,
impl<T> Send for Aligned16K<T>where
T: Send,
impl<T> Sync for Aligned16K<T>where
T: Sync,
impl<T> Unpin for Aligned16K<T>where
T: Unpin,
impl<T> UnsafeUnpin for Aligned16K<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Aligned16K<T>where
T: UnwindSafe,
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