pub trait HopperLayout: Pod + FixedLayout {
const DISC: u8;
const VERSION: u8;
const LAYOUT_ID: [u8; 8];
const LEN_WITH_HEADER: usize;
}Expand description
Trait implemented by hopper_layout! types providing layout metadata.
This bridges the macro-generated constants (DISC, VERSION, LAYOUT_ID, LEN) into a trait for generic consumption by modifier wrappers.
Required Associated Constants§
const DISC: u8
const VERSION: u8
const LAYOUT_ID: [u8; 8]
const LEN_WITH_HEADER: 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.