Struct move_bytecode_viewer::viewer::Viewer
source · pub struct Viewer<BytecodeViewer: LeftScreen, SourceViewer: RightScreen<BytecodeViewer>> { /* private fields */ }
Implementations§
source§impl<BytecodeViewer: LeftScreen, SourceViewer: RightScreen<BytecodeViewer>> Viewer<BytecodeViewer, SourceViewer>
impl<BytecodeViewer: LeftScreen, SourceViewer: RightScreen<BytecodeViewer>> Viewer<BytecodeViewer, SourceViewer>
Trait Implementations§
source§impl<BytecodeViewer: Clone + LeftScreen, SourceViewer: Clone + RightScreen<BytecodeViewer>> Clone for Viewer<BytecodeViewer, SourceViewer>
impl<BytecodeViewer: Clone + LeftScreen, SourceViewer: Clone + RightScreen<BytecodeViewer>> Clone for Viewer<BytecodeViewer, SourceViewer>
source§impl<BytecodeViewer: Debug + LeftScreen, SourceViewer: Debug + RightScreen<BytecodeViewer>> Debug for Viewer<BytecodeViewer, SourceViewer>
impl<BytecodeViewer: Debug + LeftScreen, SourceViewer: Debug + RightScreen<BytecodeViewer>> Debug for Viewer<BytecodeViewer, SourceViewer>
source§impl<BytecodeViewer: LeftScreen, SourceViewer: RightScreen<BytecodeViewer>> TUIInterface for Viewer<BytecodeViewer, SourceViewer>
impl<BytecodeViewer: LeftScreen, SourceViewer: RightScreen<BytecodeViewer>> TUIInterface for Viewer<BytecodeViewer, SourceViewer>
source§const LEFT_TITLE: &'static str = "Bytecode"
const LEFT_TITLE: &'static str = "Bytecode"
The title to be used for the left screen
source§const RIGHT_TITLE: &'static str = "Source Code"
const RIGHT_TITLE: &'static str = "Source Code"
The title to be used for the right screen
source§fn on_redraw(&mut self, line_number: u16, column_number: u16) -> TUIOutput<'_>
fn on_redraw(&mut self, line_number: u16, column_number: u16) -> TUIOutput<'_>
Function called on each redraw. The
TUIOutput
contains that updated data to display on
each pane.source§fn bound_line(&self, line_number: u16) -> u16
fn bound_line(&self, line_number: u16) -> u16
Bounds the line number so that it does not run past the text.