pub trait MaxEncodeSize {
const MAX_ENCODE_SIZE: usize;
}Expand description
Trait for types whose encoded size has a known upper bound.
Bounds follow the crate’s size policy.
Required Associated Constants§
Sourceconst MAX_ENCODE_SIZE: usize
const MAX_ENCODE_SIZE: usize
An upper bound on the encoded size, in bytes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".