Add a few bits of polish to AllocStrategy so that it's easier to use elsewhere.
When AllocStrategy is used by a data structure passed across multiple threads, it would be handy to have both the AllocStrategy and its inner Mutex equipped with Send. In times where one wants to use #[derive(Debug)], it would also be handy for AllocStrategy to have an impl of Debug.
Add a few bits of polish to AllocStrategy so that it's easier to use elsewhere.
When AllocStrategy is used by a data structure passed across multiple threads, it would be handy to have both the AllocStrategy and its inner Mutex equipped with
Send
. In times where one wants to use#[derive(Debug)]
, it would also be handy for AllocStrategy to have animpl
ofDebug
.