pub trait FixedSizeSerializeBytes: SerializeBytes + DeserializeBytes {
const BYTE_SIZE: usize;
}Expand description
A type whose byte-serialized form has a fixed, compile-time-known size.
Implementors must guarantee that SerializeBytes::serialize writes exactly
BYTE_SIZE bytes and that DeserializeBytes::deserialize reads exactly
BYTE_SIZE bytes.
Required Associated Constants§
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.