Searched refs:Box (Results 1 – 7 of 7) sorted by relevance
/rust/alloc/ |
D | boxed.rs | 184 pub struct Box< struct 189 impl<T> Box<T> { impl 229 pub fn new_uninit() -> Box<mem::MaybeUninit<T>> { in new_uninit() 255 pub fn new_zeroed() -> Box<mem::MaybeUninit<T>> { in new_zeroed() 265 pub fn pin(x: T) -> Pin<Box<T>> { in pin() 311 pub fn try_new_uninit() -> Result<Box<mem::MaybeUninit<T>>, AllocError> { in try_new_uninit() 312 Box::try_new_uninit_in(Global) in try_new_uninit() 337 pub fn try_new_zeroed() -> Result<Box<mem::MaybeUninit<T>>, AllocError> { in try_new_zeroed() 338 Box::try_new_zeroed_in(Global) in try_new_zeroed() 342 impl<T, A: Allocator> Box<T, A> { impl [all …]
|
D | raw_vec.rs | 16 use crate::boxed::Box; 156 pub unsafe fn into_box(self, len: usize) -> Box<[MaybeUninit<T>], A> { in into_box() 166 Box::from_raw_in(slice, ptr::read(&me.alloc)) in into_box()
|
D | slice.rs | 102 use crate::boxed::Box; 161 use crate::boxed::Box; 167 pub fn into_vec<T, A: Allocator>(b: Box<[T], A>) -> Vec<T, A> { in into_vec() 170 let (b, alloc) = Box::into_raw_with_allocator(b); in into_vec() 528 pub fn into_vec<A: Allocator>(self: Box<Self, A>) -> Vec<T, A> { in into_vec()
|
D | lib.rs | 216 pub use std::boxed::Box;
|
/rust/alloc/vec/ |
D | is_zero.rs | 3 use crate::boxed::Box; 82 unsafe impl<T: ?Sized> IsZero for Option<Box<T>> {
|
D | mod.rs | 76 use crate::boxed::Box; 1003 pub fn into_boxed_slice(mut self) -> Box<[T], A> { in into_boxed_slice() 3044 impl<T, A: Allocator> From<Box<[T], A>> for Vec<T, A> { 3054 fn from(s: Box<[T], A>) -> Self { in from() 3063 impl<T, A: Allocator> From<Vec<T, A>> for Box<[T], A> { implementation
|
/rust/kernel/ |
D | prelude.rs | 18 pub use alloc::{boxed::Box, vec::Vec};
|