pub trait RightScreen<Indexer: LeftScreen> {
    // Required methods
    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§

source

fn source_for_code_location( &self, bytecode_info: &Indexer::SourceIndex ) -> Result<SourceContext>

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

source

fn backing_string(&self) -> String

Implementors§