Struct cranelift_module::ModuleNamespace[][src]

pub struct ModuleNamespace<'a, B: 'a> where
    B: Backend
{ /* fields omitted */ }

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

Methods

impl<'a, B> ModuleNamespace<'a, B> where
    B: Backend
[src]

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

impl<'a, B> Send for ModuleNamespace<'a, B> where
    <B as Backend>::CompiledData: Sync,
    <B as Backend>::CompiledFunction: Sync

impl<'a, B> Sync for ModuleNamespace<'a, B> where
    <B as Backend>::CompiledData: Sync,
    <B as Backend>::CompiledFunction: Sync