Lines Matching refs:Global
159 use crate::alloc::{AllocError, Allocator, Global, Layout};
186 #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
230 Self::new_uninit_in(Global) in new_uninit()
256 Self::new_zeroed_in(Global) in new_zeroed()
285 Self::try_new_in(x, Global) in try_new()
312 Box::try_new_uninit_in(Global) in try_new_uninit()
338 Box::try_new_zeroed_in(Global) in try_new_zeroed()
673 let ptr = Global.allocate(layout)?; in try_new_uninit_slice()
674 Ok(RawVec::from_raw_parts_in(ptr.as_mut_ptr() as *mut _, len, Global).into_box(len)) in try_new_uninit_slice()
705 let ptr = Global.allocate_zeroed(layout)?; in try_new_zeroed_slice()
706 Ok(RawVec::from_raw_parts_in(ptr.as_mut_ptr() as *mut _, len, Global).into_box(len)) in try_new_zeroed_slice()
930 unsafe { Self::from_raw_in(raw, Global) } in from_raw()
1203 Box(ptr, Global) in default()
1217 Box(ptr, Global) in default()
1898 impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Box<U>> for Box<T, Global> {}