pub trait Decode: Sized {
// Required method
fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error>
where T: BytecodeStream;
}
Available on crate feature
decode
only.Expand description
Anything that can be decoded from a bytecode stream, e.g. opcodes, immediates, registers, etc…
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.