pub trait Size { // Required method fn size(&self) -> u64; }
Trait for types that can report their serialized size at runtime.
Returns the size (in bytes) of the instance.