Struct move_bytecode_viewer::viewer::Viewer
source · [−]pub struct Viewer<BytecodeViewer: LeftScreen, SourceViewer: RightScreen<BytecodeViewer>> { /* private fields */ }Implementations
sourceimpl<BytecodeViewer: LeftScreen, SourceViewer: RightScreen<BytecodeViewer>> Viewer<BytecodeViewer, SourceViewer>
impl<BytecodeViewer: LeftScreen, SourceViewer: RightScreen<BytecodeViewer>> Viewer<BytecodeViewer, SourceViewer>
Trait Implementations
sourceimpl<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>
sourceimpl<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>
sourceimpl<BytecodeViewer: LeftScreen, SourceViewer: RightScreen<BytecodeViewer>> TUIInterface for Viewer<BytecodeViewer, SourceViewer>
impl<BytecodeViewer: LeftScreen, SourceViewer: RightScreen<BytecodeViewer>> TUIInterface for Viewer<BytecodeViewer, SourceViewer>
sourceconst LEFT_TITLE: &'static str = "Bytecode"
const LEFT_TITLE: &'static str = "Bytecode"
The title to be used for the left screen
sourceconst RIGHT_TITLE: &'static str = "Source Code"
const RIGHT_TITLE: &'static str = "Source Code"
The title to be used for the right screen
sourcefn 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. Read more
sourcefn 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.
Auto Trait Implementations
impl<BytecodeViewer, SourceViewer> RefUnwindSafe for Viewer<BytecodeViewer, SourceViewer> where
BytecodeViewer: RefUnwindSafe,
SourceViewer: RefUnwindSafe,
impl<BytecodeViewer, SourceViewer> Send for Viewer<BytecodeViewer, SourceViewer> where
BytecodeViewer: Send,
SourceViewer: Send,
impl<BytecodeViewer, SourceViewer> Sync for Viewer<BytecodeViewer, SourceViewer> where
BytecodeViewer: Sync,
SourceViewer: Sync,
impl<BytecodeViewer, SourceViewer> Unpin for Viewer<BytecodeViewer, SourceViewer> where
BytecodeViewer: Unpin,
SourceViewer: Unpin,
impl<BytecodeViewer, SourceViewer> UnwindSafe for Viewer<BytecodeViewer, SourceViewer> where
BytecodeViewer: UnwindSafe,
SourceViewer: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more