Struct bytecode_source_map::marking::FunctionMarking
source · pub struct FunctionMarking {
pub code_offsets: BTreeMap<CodeOffset, Vec<String>>,
pub type_param_offsets: BTreeMap<usize, Vec<String>>,
}
Expand description
A data structure used to track any markings or extra information that is desired to be exposed in the disassembled function definition. Every marking can have multiple messages associated with it.
Fields§
§code_offsets: BTreeMap<CodeOffset, Vec<String>>
§type_param_offsets: BTreeMap<usize, Vec<String>>
Implementations§
source§impl FunctionMarking
impl FunctionMarking
pub fn new() -> Self
pub fn code_offset(&mut self, code_offset: CodeOffset, message: String)
pub fn type_param(&mut self, type_param_index: usize, message: String)
Trait Implementations§
source§impl Debug for FunctionMarking
impl Debug for FunctionMarking
source§impl Default for FunctionMarking
impl Default for FunctionMarking
source§fn default() -> FunctionMarking
fn default() -> FunctionMarking
Returns the “default value” for a type. Read more