pub struct BytecodeViewer<'a> {
    pub lines: Vec<String>,
    pub view: BinaryIndexedView<'a>,
    pub line_map: HashMap<usize, BytecodeInfo>,
}

Fields

lines: Vec<String>view: BinaryIndexedView<'a>line_map: HashMap<usize, BytecodeInfo>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This is the type used for indexing the source code in the RightScreen trait. e.g., for bytecode and using the source map, this would be a tuple of (FunctionDefinitionIndex, CodeOffset). Read more

Given a line and the column within that line, this returns a SourceIndex to be used by the RightScreen trait. Read more

Return the backing string to be displayed on the left screen.

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self

The resulting type after obtaining ownership.

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.