Struct oxc_allocator::Box
source · pub struct Box<'alloc, T: ?Sized>(/* private fields */);
Expand description
A Box without Drop.
This is used for over coming self-referential structs.
It is a memory leak if the boxed value has a Drop
implementation.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'alloc, T> Freeze for Box<'alloc, T>where
T: ?Sized,
impl<'alloc, T> RefUnwindSafe for Box<'alloc, T>where
T: RefUnwindSafe + ?Sized,
impl<'alloc, T> !Send for Box<'alloc, T>
impl<'alloc, T> !Sync for Box<'alloc, T>
impl<'alloc, T> Unpin for Box<'alloc, T>
impl<'alloc, T> UnwindSafe for Box<'alloc, 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