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§
Sourcefn ident_name(&self, ident: &Ident) -> String
fn ident_name(&self, ident: &Ident) -> String
Name of an identifier.
Sourcefn field_name(&self, id: FieldId) -> String
fn field_name(&self, id: FieldId) -> String
Name of a field.
Sourcefn space_name(&self, id: SpaceId) -> String
fn space_name(&self, id: SpaceId) -> String
Name of an address space.
Sourcefn pcode_op_name(&self, id: PCodeOpId) -> String
fn pcode_op_name(&self, id: PCodeOpId) -> String
Name of a user-defined operation.
Sourcefn macro_name(&self, id: PMacroId) -> String
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".