pub struct Tagged { /* private fields */ }Expand description
What a CountingAlloc::with_tags counts by tag: for each of the
TAGS, its live bytes and blocks, the bytes ever allocated under
it, and the peak of its live bytes.
The header. Each block carries the tag it counts under in a header
in front of it of max(align, 8) bytes, for the block’s alignment
align: the block keeps its alignment, and the tag (a u16) sits in the header’s
last two bytes, just before the block. The inner allocator is asked
for the block and its header, at the block’s alignment. The counts
are the bytes asked for: a header’s bytes are never counted.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Tagged
impl RefUnwindSafe for Tagged
impl Send for Tagged
impl Sync for Tagged
impl Unpin for Tagged
impl UnsafeUnpin for Tagged
impl UnwindSafe for Tagged
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more