pub trait SpecEncode {
const SPEC_LAYOUT: Layout;
// Required method
fn spec_bit_encode<K: Sink>(&self, w: &mut K) -> Result<(), BitError>;
}Expand description
The “write reserved fields as their spec value” encode path, generated for a
#[bin] message that has a reserved field. The inherent to_spec_bytes /
spec_encode_into ride on this; the std-only SpecEncodeExt adds
spec_encode(writer).
Required Associated Constants§
Sourceconst SPEC_LAYOUT: Layout
const SPEC_LAYOUT: Layout
The message’s bit/byte order (mirrors BitEncode::LAYOUT).
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".