Lines Matching refs:Global
172 use crate::alloc::{AllocError, Allocator, Global, Layout};
201 #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
247 Self::new_uninit_in(Global) in new_uninit()
273 Self::new_zeroed_in(Global) in new_zeroed()
307 Self::try_new_in(x, Global) in try_new()
334 Box::try_new_uninit_in(Global) in try_new_uninit()
360 Box::try_new_zeroed_in(Global) in try_new_zeroed()
687 let ptr = Global.allocate(layout)?; in try_new_uninit_slice()
688 Ok(RawVec::from_raw_parts_in(ptr.as_mut_ptr() as *mut _, len, Global).into_box(len)) in try_new_uninit_slice()
719 let ptr = Global.allocate_zeroed(layout)?; in try_new_zeroed_slice()
720 Ok(RawVec::from_raw_parts_in(ptr.as_mut_ptr() as *mut _, len, Global).into_box(len)) in try_new_zeroed_slice()
943 unsafe { Self::from_raw_in(raw, Global) } in from_raw()
1239 Box(ptr, Global) in default()
1253 Box(ptr, Global) in default()
2011 impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Box<U>> for Box<T, Global> {}