pub trait StaticDataSize: DataSize {
// Required method
fn static_data_size() -> usize
where Self: Sized;
}Required Methods§
Sourcefn static_data_size() -> usizewhere
Self: Sized,
fn static_data_size() -> usizewhere
Self: Sized,
Returns the size of Self in bytes when written with Writable.
If Self is an enum, then the size is the maximum size of the values
contained in the variants