#[repr(C)]
pub enum FormatterFunction {
Show 19 variants
PRE_INSTRUCTION,
POST_INSTRUCTION,
FORMAT_INSTRUCTION,
PRE_OPERAND,
POST_OPERAND,
FORMAT_OPERAND_REG,
FORMAT_OPERAND_MEM,
FORMAT_OPERAND_PTR,
FORMAT_OPERAND_IMM,
PRINT_MNEMONIC,
PRINT_REGISTER,
PRINT_ADDRESS_ABS,
PRINT_ADDRESS_REL,
PRINT_DISP,
PRINT_IMM,
PRINT_TYPECAST,
PRINT_SEGMENT,
PRINT_PREFIXES,
PRINT_DECORATOR,
}
Expand description
Defines the ZydisFormatterFunction
enum.
Variants
PRE_INSTRUCTION
This function is invoked before the formatter formats an instruction.
POST_INSTRUCTION
This function is invoked after the formatter formatted an instruction.
FORMAT_INSTRUCTION
This function refers to the main formatting function.
PRE_OPERAND
This function is invoked before the formatter formats an operand.
POST_OPERAND
This function is invoked after the formatter formatted an operand.
FORMAT_OPERAND_REG
This function is invoked to format a register operand.
FORMAT_OPERAND_MEM
This function is invoked to format a memory operand.
FORMAT_OPERAND_PTR
This function is invoked to format a pointer operand.
FORMAT_OPERAND_IMM
This function is invoked to format an immediate operand.
PRINT_MNEMONIC
This function is invoked to print the instruction mnemonic.
PRINT_REGISTER
This function is invoked to print a register.
PRINT_ADDRESS_ABS
This function is invoked to print absolute addresses.
PRINT_ADDRESS_REL
This function is invoked to print relative addresses.
PRINT_DISP
This function is invoked to print a memory displacement value.
PRINT_IMM
This function is invoked to print an immediate value.
PRINT_TYPECAST
This function is invoked to print the size of a memory operand (INTEL
only).
PRINT_SEGMENT
This function is invoked to print the segment-register of a memory operand.
PRINT_PREFIXES
This function is invoked to print the instruction prefixes.
PRINT_DECORATOR
This function is invoked after formatting an operand to print a
EVEX
/MVEX
decorator.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FormatterFunction
impl Send for FormatterFunction
impl Sync for FormatterFunction
impl Unpin for FormatterFunction
impl UnwindSafe for FormatterFunction
Blanket Implementations
Mutably borrows from an owned value. Read more