pub trait SizedBytes {
    // Required method
    fn serialized_size(&self) -> usize;
}
Expand description

Define the amount of bytes for a serialization implementation.

Required Methods§

source

fn serialized_size(&self) -> usize

Return the expected serialized size for an instance of the type.

Implementors§