pub trait ConstEncodedSize {
// Required method
fn encoded_size() -> usize;
}Expand description
Provides the expected size of the serialized form so repeated serialization is not needed to find space.
Required Methods§
fn encoded_size() -> usize
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.