Skip to main content

InstrDisplayContext

Trait InstrDisplayContext 

Source
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§

Source

fn get_constant(&self, consti: ConstIdx) -> &Self::Constant

Source

fn get_name(&self, i: usize) -> &str

Source

fn get_varname(&self, var_num: VarNum) -> &str

Source

fn get_localsplus_name(&self, var_num: VarNum) -> &str

Get name for a localsplus index (used by DEREF instructions).

Implementors§