pub struct ModuleNamespace<'a, B: 'a>where
    B: Backend,
{ /* private fields */ }
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 FunctionDeclaration for the function named by name.

Get the DataDeclaration for the function named by name.

Get the definition for the function named by name, along with its name and signature.

Get the definition for the data object named by name, along with its name and writable flag

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

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.