pub trait RightScreen<Indexer: LeftScreen> {
    fn source_for_code_location(
        &self,
        bytecode_info: &Indexer::SourceIndex
    ) -> Result<SourceContext>; fn backing_string(&self) -> String; }
Expand description

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 a SourceContext view of the text held by the implementor of the RightScreen trait.

Required Methods

Take a SourceIndex from the Indexer and turn it into a context that will be diplayed on the right screen.

Implementors