#[repr(C)]pub struct WithMemAfter<T, const N: usize> { /* private fields */ }
Implementations§
Source§impl<T: Sized, const N: usize> WithMemAfter<T, N>
impl<T: Sized, const N: usize> WithMemAfter<T, N>
pub fn new() -> Self
pub fn as_mut_ptr(&mut self) -> *mut T
pub fn total_size(&self) -> usize
pub fn extra_ptr(&self) -> *const u8
pub fn extra_size(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<T, const N: usize> Freeze for WithMemAfter<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for WithMemAfter<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for WithMemAfter<T, N>where
T: Send,
impl<T, const N: usize> Sync for WithMemAfter<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for WithMemAfter<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for WithMemAfter<T, N>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