pub trait Encode {
const WIDTH: u8;
// Required method
fn encode<E>(&self, sink: &mut E)
where E: Extend<u8>;
}
Available on crate feature
encode
only.Expand description
Helper trait to encode instructions into a “sink”.
Required Associated Constants§
Required Methods§
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.