pub trait LengthedInstruction {
type Unit;
// Required methods
fn len(&self) -> Self::Unit;
fn min_size() -> Self::Unit;
}
Expand description
instructions have lengths, and minimum possible sizes for advancing a decoder on error.
unfortunately, this means calling x.len()
for some Arch::Instruction
requires importing
this trait. sorry.
Required Associated Types§
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.