#[derive(MemSize)]
{
// Attributes available to this derive:
#[copy_type]
}
Expand description
Generate a mem_dbg::MemSize implementation for custom types.
Presently we do not support unions.
The attribute copy_type can be used on [Copy] types that do not contain non-'static references
to make MemSize::mem_size faster on arrays, vectors and slices. Note that specifying
copy_type will add the bound that the type is Copy + 'static.
See mem_dbg::CopyType for more details.