std::boxed::Box
pub struct Box<T, A = Global>(/* private fields */)
- Kind
- struct
- Module
std::boxed- Since
- 1.0.0
Source: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
The entries of std::boxed in the Rust reference. This page has 55 cards.
pub struct Box<T, A = Global>(/* private fields */)
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn allocator(b: &Box<T, A>) -> &A
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn as_mut_ptr(b: &mut Box<T, A>) -> *mut T
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn as_non_null(b: &mut Box<T, A>) -> NonNull<T>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn as_ptr(b: &Box<T, A>) -> *const T
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn assume_init(self) -> Box<T, A>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn clone_from_ref(src: &T) -> Box<T>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn clone_from_ref_in(src: &T, alloc: A) -> Box<T, A>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn downcast<T>(self) -> Result<Box<T, A>, Box<dyn Any, A>> where T: Any
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn downcast_unchecked<T>(self) -> Box<T, A> where T: Any
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn from_non_null(ptr: NonNull<T>) -> Box<T>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn from_non_null_in(raw: NonNull<T>, alloc: A) -> Box<T, A>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn from_raw(raw: *mut T) -> Box<T>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn from_raw_in(raw: *mut T, alloc: A) -> Box<T, A>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_array<const N: usize>(self) -> Result<Box<[T; N], A>, Box<[T], A>>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_boxed_slice(boxed: Box<T, A>) -> Box<[T], A>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_inner(boxed: Box<T, A>) -> T
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_non_null(b: Box<T>) -> NonNull<T>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_non_null_with_allocator(b: Box<T, A>) -> (NonNull<T>, A)
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_pin(boxed: Box<T, A>) -> Pin<Box<T, A>> where A: 'static
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_raw(b: Box<T>) -> *mut T
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_raw_with_allocator(b: Box<T, A>) -> (*mut T, A)
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn leak<'a>(b: Box<T, A>) -> &'a mut T where A: 'a
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn map<U>(this: Box<T>, f: impl FnOnce(T) -> U) -> Box<U>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new(x: T) -> Box<T>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_in(x: T, alloc: A) -> Box<T, A> where A: Allocator
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_uninit() -> Box<MaybeUninit<T>>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_uninit_in(alloc: A) -> Box<MaybeUninit<T>, A> where A: Allocator
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_uninit_slice(len: usize) -> Box<[MaybeUninit<T>]>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_uninit_slice_in(len: usize, alloc: A) -> Box<[MaybeUninit<T>], A>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_zeroed() -> Box<MaybeUninit<T>>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_zeroed_in(alloc: A) -> Box<MaybeUninit<T>, A> where A: Allocator
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_zeroed_slice(len: usize) -> Box<[MaybeUninit<T>]>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_zeroed_slice_in(len: usize, alloc: A) -> Box<[MaybeUninit<T>], A>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn pin(x: T) -> Pin<Box<T>>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn pin_in(x: T, alloc: A) -> Pin<Box<T, A>> where A: 'static + Allocator
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn take(boxed: Box<T, A>) -> (T, Box<MaybeUninit<T>, A>)
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_clone_from_ref(src: &T) -> Result<Box<T>, AllocError>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_clone_from_ref_in(src: &T, alloc: A) -> Result<Box<T, A>, AllocError>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_map<R>( this: Box<T>, f: impl FnOnce(T) -> R, ) -> <<R as Try>::Residual as Residual<Box<<R as Try>::Output>>>::TryType where R: Try, <R as Try>::Residual: Residual<Box<<R as Try>::Output>>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new(x: T) -> Result<Box<T>, AllocError>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_in(x: T, alloc: A) -> Result<Box<T, A>, AllocError> where A: Allocator
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_uninit() -> Result<Box<MaybeUninit<T>>, AllocError>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_uninit_in(alloc: A) -> Result<Box<MaybeUninit<T>, A>, AllocError> where A: Allocator
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_uninit_slice( len: usize, ) -> Result<Box<[MaybeUninit<T>]>, AllocError>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_uninit_slice_in( len: usize, alloc: A, ) -> Result<Box<[MaybeUninit<T>], A>, AllocError>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_zeroed() -> Result<Box<MaybeUninit<T>>, AllocError>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_zeroed_in(alloc: A) -> Result<Box<MaybeUninit<T>, A>, AllocError> where A: Allocator
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_zeroed_slice( len: usize, ) -> Result<Box<[MaybeUninit<T>]>, AllocError>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_zeroed_slice_in( len: usize, alloc: A, ) -> Result<Box<[MaybeUninit<T>], A>, AllocError>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn write(boxed: Box<MaybeUninit<T>, A>, value: T) -> Box<T, A>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct ThinBox<T>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new(value: T) -> ThinBox<T>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new_unsize<T>(value: T) -> ThinBox<Dyn> where T: Unsize<Dyn>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new(value: T) -> Result<ThinBox<T>, AllocError>
std::boxedSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.