pub trait WireLayout: ZeroCopy {
const WIRE_SIZE: usize = _;
}Expand description
A ZeroCopy type with a compile-time-known wire size.
The associated constant defaults to size_of::<Self>(). The blanket
implementation below applies that value to each ZeroCopy type.
Provided Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".