Struct cranelift_module::ModuleDeclarations[][src]

pub struct ModuleDeclarations { /* fields omitted */ }
Expand description

This provides a view to the state of a module which allows ir::ExternalNames to be translated into FunctionDeclarations and DataDeclarations.

Implementations

Get the module identifier for a given name, if that name has been declared.

Get an iterator of all function declarations

Return whether name names a function, rather than a data object.

Get the FunctionDeclaration for the function named by name.

Get an iterator of all data declarations

Get the DataDeclaration for the data object named by name.

Declare a function in this module.

Declare an anonymous function in this module.

Declare a data object in this module.

Declare an anonymous data object in this module.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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 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.