pub struct AlignedBox<T: ?Sized> { /* private fields */ }
Expand description
Aligned heap allocation
Implementations§
Source§impl<T> AlignedBox<T>
impl<T> AlignedBox<T>
Source§impl<T: ?Sized> AlignedBox<T>
impl<T: ?Sized> AlignedBox<T>
Sourcepub fn into_raw(this: Self) -> (*mut T, usize)
pub fn into_raw(this: Self) -> (*mut T, usize)
Consumes the box, returning a raw pointer and alignment.
Trait Implementations§
Source§impl<T: ?Sized> Deref for AlignedBox<T>
impl<T: ?Sized> Deref for AlignedBox<T>
Source§impl<T: ?Sized> DerefMut for AlignedBox<T>
impl<T: ?Sized> DerefMut for AlignedBox<T>
Source§impl<T: ?Sized> Drop for AlignedBox<T>
impl<T: ?Sized> Drop for AlignedBox<T>
impl<T: ?Sized + RefUnwindSafe> RefUnwindSafe for AlignedBox<T>
impl<T: ?Sized + Send> Send for AlignedBox<T>
impl<T: ?Sized + Sync> Sync for AlignedBox<T>
impl<T: ?Sized + UnwindSafe> UnwindSafe for AlignedBox<T>
Auto Trait Implementations§
impl<T> Freeze for AlignedBox<T>where
T: ?Sized,
impl<T> Unpin for AlignedBox<T>
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