pub unsafe trait Layout: Copy {
// Required methods
fn entries(self) -> NonZero<u16>;
fn capacity(self) -> NonZero<u32>;
}Expand description
§Safety
Copies preserve values. Entries are powers of two >= 2; capacity <= o3::buffer::bytes::bounded::MAX.
The product of entry count and capacity is at most isize::MAX.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".