1#[allow(unused_imports)]
4use announce::announce;
5
6#[announce(mock = ::core::alloc::GlobalAlloc)]
10pub unsafe trait GlobalAlloc {
11 unsafe fn alloc(&self, layout: ::core::alloc::Layout) -> *mut ::core::primitive::u8;
12 unsafe fn dealloc(&self, ptr: *mut ::core::primitive::u8, layout: ::core::alloc::Layout);
13 unsafe fn alloc_zeroed(&self, layout: ::core::alloc::Layout) -> *mut ::core::primitive::u8 {
14 ::core::unimplemented!()
15 }
16 unsafe fn realloc(
17 &self,
18 ptr: *mut ::core::primitive::u8,
19 layout: ::core::alloc::Layout,
20 new_size: ::core::primitive::usize,
21 ) -> *mut ::core::primitive::u8 {
22 ::core::unimplemented!()
23 }
24}
25#[doc(no_inline)]
26pub use ::core::alloc::GlobalAlloc;