Trait FixedSize
pub trait FixedSize {
const SIZE: usize;
}Expand description
The number of octets occupied by a value in the encoded representation.
This is independent of Rust’s memory layout. Implementations must describe a constant encoded size; optional and variable-length values do not qualify.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".