Module move_bytecode_viewer::interfaces
source · Structs
- There are two interfaces–the
LeftScreen
andRightScreen
–that need to be implemented for the bytecode viewer and these can be mix-and-matched for different implementations.
Traits
- The
LeftScreen
trait is used to index the code. - The
RightScreen
trait takes the indices output by the left screen (cursor movements that have been possibly translated in some way, e.g., to (fdef_index, code_offset) pairs) and translates these indices into aSourceContext
view of the text held by the implementor of theRightScreen
trait.