pub trait DescriptionSink<Descriptor> {
// Required method
fn record(&mut self, start: u32, end: u32, description: Descriptor);
}Expand description
implementors of DescriptionSink receive descriptions of an instruction’s disassembly process
and relevant offsets in the bitstream being decoded. descriptions are archtecture-specific, and
architectures are expected to be able to turn the bit-level start and width values into a
meaningful description of bits in the original instruction stream.
Required Methods§
Sourcefn record(&mut self, start: u32, end: u32, description: Descriptor)
fn record(&mut self, start: u32, end: u32, description: Descriptor)
inform this DescriptionSink of a description that was informed by bits start to
end from the start of an instruction’s decoding. start and end are only relative the
instruction being decoded when this sink DescriptionSink provided, so they will have no
relation to the position in an underlying data stream used for past or future instructions.