Trait fuel_types::bytes::SizedBytes
source · [−]pub trait SizedBytes {
fn serialized_size(&self) -> usize;
}
Expand description
Define the amount of bytes for a serialization implementation.
Required Methods
sourcefn serialized_size(&self) -> usize
fn serialized_size(&self) -> usize
Return the expected serialized size for an instance of the type.