pub trait InstrDisplayContext {
type Constant: Constant;
// Required methods
fn get_constant(&self, consti: ConstIdx) -> &Self::Constant;
fn get_name(&self, i: usize) -> &str;
fn get_varname(&self, var_num: VarNum) -> &str;
fn get_localsplus_name(&self, var_num: VarNum) -> &str;
}Required Associated Types§
Required Methods§
fn get_constant(&self, consti: ConstIdx) -> &Self::Constant
fn get_name(&self, i: usize) -> &str
fn get_varname(&self, var_num: VarNum) -> &str
Sourcefn get_localsplus_name(&self, var_num: VarNum) -> &str
fn get_localsplus_name(&self, var_num: VarNum) -> &str
Get name for a localsplus index (used by DEREF instructions).