pub macro global_allocator($item:item) {
    ...
}
Expand description

Attribute macro applied to a static to register it as a global allocator.

See also std::alloc::GlobalAlloc.

This documentation is an old archive. Please see https://rust.docs.kernel.org instead.