W3cubDocs

/Rust

Attribute Macro global_allocator

#[global_allocator]

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

See also std::alloc::GlobalAlloc.

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/prelude/v1/attr.global_allocator.html