Home
last modified time | relevance | path

Searched refs:Box (Results 1 – 7 of 7) sorted by relevance

/rust/alloc/
Dboxed.rs184 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 …]
Draw_vec.rs16 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()
Dslice.rs102 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()
Dlib.rs216 pub use std::boxed::Box;
/rust/alloc/vec/
Dis_zero.rs3 use crate::boxed::Box;
82 unsafe impl<T: ?Sized> IsZero for Option<Box<T>> {
Dmod.rs76 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/
Dprelude.rs18 pub use alloc::{boxed::Box, vec::Vec};