Trait yaxpeax_arch::LengthedInstruction
source · [−]pub trait LengthedInstruction {
type Unit;
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.