pub trait ExactCellSelector: Sealed + Copy {
const WIRE_SIZE: u16;
// Required method
fn to_u32(self) -> u32;
}Expand description
A selector whose runtime value and wire representation are guaranteed to agree with Hopper’s exact-cell Effect ABI.
The trait is sealed: aliases of the real unsigned primitives inherit the
implementation, while signed integers and user-defined lookalikes cannot
opt themselves in. Macro-generated code also checks WIRE_SIZE
against the authored type spelling, catching primitive-shadowing aliases
such as a local type u16 = u8 before a manifest can publish the wrong
decoder width.
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".