Trait GlobalAlloc

Source
pub unsafe trait GlobalAlloc: GlobalAlloc { }
Expand description

This trait is empty declaration of ::core::alloc::GlobalAlloc to be used with newer_type::implement.

§Example

#[implement(newer_type_std::alloc::GlobalAlloc)]
struct MyStruct {
    slot: std::alloc::System
}

§Safety

should be implemented by newer_type::implement

Implementors§