pub struct Box<T> { /* private fields */ }Expand description
A pointer type for dynamically allocated memory.
For more details see module-level documentation
Implementations
sourceimpl<T> Box<T>
impl<T> Box<T>
sourcepub fn try_new_in(
value: T,
alloc: &'static dyn Allocator
) -> Result<Self, AllocError>
pub fn try_new_in(
value: T,
alloc: &'static dyn Allocator
) -> Result<Self, AllocError>
Try to move a value to an allocated memory space.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Box<T> where
T: RefUnwindSafe,
impl<T> !Send for Box<T>
impl<T> !Sync for Box<T>
impl<T> Unpin for Box<T>
impl<T> UnwindSafe for Box<T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more