pub trait EmbeddedStateSize: EmbeddedState {
const SIZE_CHECK: () = _;
}Expand description
Marker trait to verify state fits in 24 bytes at compile time.
Use assert_embedded_size!() macro or manual assertion.
Provided Associated Constants§
Sourceconst SIZE_CHECK: () = _
const SIZE_CHECK: () = _
Compile-time assertion that size fits.
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.