Trait cornflakes::StaticDataSize
source · pub trait StaticDataSize: DataSize {
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