pub trait FixedSize: BinarySerializable {
const SIZE_IN_BYTES: usize;
}
Expand description
FixedSize
marks a BinarySerializable
as
always serializing to the same size.
Required Associated Constants§
const SIZE_IN_BYTES: 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.