pub struct Raw<const SIZE: usize, const ALIGN: usize = { align_of::<usize>() }>{ /* private fields */ }Expand description
A raw storage, where data is stored in place.
Data size and alignment must fit, e.g. be lesser or equal to the generic parameters.
This condition is enforced by a constant assertion, which triggers at build time
— it is not triggered by cargo check.
Implementations§
Trait Implementations§
Source§impl<const SIZE: usize, const ALIGN: usize> Storage for Raw<SIZE, ALIGN>
impl<const SIZE: usize, const ALIGN: usize> Storage for Raw<SIZE, ALIGN>
Auto Trait Implementations§
impl<const SIZE: usize, const ALIGN: usize = { align_of::<usize>() }> !Freeze for Raw<SIZE, ALIGN>
impl<const SIZE: usize, const ALIGN: usize = { align_of::<usize>() }> !RefUnwindSafe for Raw<SIZE, ALIGN>
impl<const SIZE: usize, const ALIGN: usize = { align_of::<usize>() }> !Send for Raw<SIZE, ALIGN>
impl<const SIZE: usize, const ALIGN: usize = { align_of::<usize>() }> !Sync for Raw<SIZE, ALIGN>
impl<const SIZE: usize, const ALIGN: usize = { align_of::<usize>() }> !Unpin for Raw<SIZE, ALIGN>
impl<const SIZE: usize, const ALIGN: usize = { align_of::<usize>() }> !UnwindSafe for Raw<SIZE, 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