Skip to main content

PcodeResolver

Trait PcodeResolver 

Source
pub trait PcodeResolver {
    // Required methods
    fn ident_name(&self, ident: &Ident) -> String;
    fn field_name(&self, id: FieldId) -> String;
    fn space_name(&self, id: SpaceId) -> String;
    fn pcode_op_name(&self, id: PCodeOpId) -> String;
    fn macro_name(&self, id: PMacroId) -> String;
}
Expand description

Supplies names for formatting a p-code AST without coupling it to a particular producer such as SLEIGH.

Required Methods§

Source

fn ident_name(&self, ident: &Ident) -> String

Name of an identifier.

Source

fn field_name(&self, id: FieldId) -> String

Name of a field.

Source

fn space_name(&self, id: SpaceId) -> String

Name of an address space.

Source

fn pcode_op_name(&self, id: PCodeOpId) -> String

Name of a user-defined operation.

Source

fn macro_name(&self, id: PMacroId) -> String

Name of a macro.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§