The GlobalAlloc trait, described here, allows an implementing struct to be used as the default allocator for a Rust program, meaning Box and other heap-allocated types would get to use this allocator. While not at all necessary for the demonstration that this project aims to be, it would be joyously chaotic to be able to write a real program in Rust using trolloc.
The
GlobalAlloc
trait, described here, allows an implementing struct to be used as the default allocator for a Rust program, meaningBox
and other heap-allocated types would get to use this allocator. While not at all necessary for the demonstration that this project aims to be, it would be joyously chaotic to be able to write a real program in Rust usingtrolloc
.