Struct cretonne_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]

[src]

Get the FunctionDeclaration for the function named by name.

[src]

Get the DataDeclaration for the function named by name.

[src]

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

[src]

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

[src]

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

Trait Implementations

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