| H A D | kbox.rs | 3 //! Implementation of [`Box`]. 25 /// The kernel's [`Box`] type -- a heap allocation for a single value of type `T`. 27 /// This is the kernel's version of the Rust stdlib's `Box`. There are several differences, 28 /// for example no `noalias` attribute is emitted and partially moving out of a `Box` is not 29 /// supported. There are also several API differences, e.g. `Box` always requires an [`Allocator`] 33 /// `Box` works with any of the kernel's allocators, e.g. [`Kmalloc`], [`Vmalloc`] or [`KVmalloc`]. 34 /// There are aliases for `Box` with these allocators ([`KBox`], [`VBox`], [`KVBox`]). 36 /// When dropping a [`Box`], the value is also dropped and the heap memory is automatically freed. 63 /// [`Box`]es can also be used to store trait objects by coercing their type: 81 pub struct Box<#[pointe struct 89 impl<T, U, A> core::ops::CoerceUnsized<Box<U, A>> for Box<T, A> global() implementation 100 impl<T, U, A> core::ops::DispatchFromDyn<Box<U, A>> for Box<T, A> global() implementation 146 unsafe impl<T, A: Allocator> ZeroableOption for Box<T, A> {} global() implementation 149 unsafe impl<T, A> Send for Box<T, A> global() implementation 157 unsafe impl<T, A> Sync for Box<T, A> global() implementation 164 impl<T, A> Box<T, A> global() implementation 218 impl<T, A> Box<MaybeUninit<T>, A> global() implementation 248 impl<T, A> Box<T, A> global() implementation 433 impl<T, A> InPlaceWrite<T> for Box<MaybeUninit<T>, A> global() implementation 458 impl<T, A> InPlaceInit<T> for Box<T, A> global() implementation 483 unsafe impl<T: 'static, A> ForeignOwnable for Box<T, A> global() implementation 565 impl<T, A> Deref for Box<T, A> global() implementation 579 impl<T, A> DerefMut for Box<T, A> global() implementation 609 impl<T, A> Borrow<T> for Box<T, A> global() implementation 637 impl<T, A> BorrowMut<T> for Box<T, A> global() implementation 647 impl<T, A> fmt::Display for Box<T, A> global() implementation 657 impl<T, A> fmt::Debug for Box<T, A> global() implementation 667 impl<T, A> Drop for Box<T, A> global() implementation [all...] |