#[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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.