The global allocator of a Rust program is the allocator behind Box, Vec, String and every standard collection; a program can replace it with any type implementing GlobalAlloc, declared with #[global_allocator], for example one that counts allocations in tests.
Quantitative Finance · Glossary