Size

Trait Size 

Source
pub trait Size {
    // Required method
    fn size(&self) -> u64;
}
Expand description

Trait for types that can report their serialized size at runtime.

Required Methods§

Source

fn size(&self) -> u64

Returns the size (in bytes) of the instance.

Implementors§