pub fn counted() -> bool
Whether the calling thread’s allocations are counted. It allocates nothing, so a global allocator may ask it.