pub trait StaticSize {
const SIZE: usize;
}Available on crate feature
zero-copy only.Expand description
Indicates that a type has a fixed size known at compile time. This allows us to perform bounds checking efficiently.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".