pub struct Box<T: ?Sized, A: Allocator = Global> { /* private fields */ }Expand description
A pointer type that uniquely owns a heap allocation of type T.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, A> Freeze for Box<T, A>
impl<T, A> RefUnwindSafe for Box<T, A>
impl<T, A = Global> !Send for Box<T, A>
impl<T, A = Global> !Sync for Box<T, A>
impl<T, A> Unpin for Box<T, A>
impl<T, A> UnsafeUnpin for Box<T, A>where
A: UnsafeUnpin,
T: ?Sized,
impl<T, A> UnwindSafe for Box<T, A>
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