pub struct Viewer<BytecodeViewer: LeftScreen, SourceViewer: RightScreen<BytecodeViewer>> { /* private fields */ }

Implementations§

source§

impl<BytecodeViewer: LeftScreen, SourceViewer: RightScreen<BytecodeViewer>> Viewer<BytecodeViewer, SourceViewer>

source

pub fn new(source_viewer: SourceViewer, bytecode_viewer: BytecodeViewer) -> Self

Trait Implementations§

source§

impl<BytecodeViewer: Clone + LeftScreen, SourceViewer: Clone + RightScreen<BytecodeViewer>> Clone for Viewer<BytecodeViewer, SourceViewer>

source§

fn clone(&self) -> Viewer<BytecodeViewer, SourceViewer>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<BytecodeViewer: Debug + LeftScreen, SourceViewer: Debug + RightScreen<BytecodeViewer>> Debug for Viewer<BytecodeViewer, SourceViewer>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<BytecodeViewer: LeftScreen, SourceViewer: RightScreen<BytecodeViewer>> TUIInterface for Viewer<BytecodeViewer, SourceViewer>

source§

const LEFT_TITLE: &'static str = "Bytecode"

The title to be used for the left screen
source§

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<'_>

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

Bounds the line number so that it does not run past the text.
source§

fn bound_column(&self, line_number: u16, column_number: u16) -> u16

Bounds the column number (w.r.t. the current line_number) so that the cursor does not overrun the line.

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§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V