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::ExternalName
s to be translated
into FunctionDeclaration
s and DataDeclaration
s.
Methods
impl<'a, B> ModuleNamespace<'a, B> where
B: Backend,
[src]
impl<'a, B> ModuleNamespace<'a, B> where
B: Backend,
pub fn get_function_decl(&self, name: &ExternalName) -> &FunctionDeclaration
[src]
pub fn get_function_decl(&self, name: &ExternalName) -> &FunctionDeclaration
Get the FunctionDeclaration
for the function named by name
.
pub fn get_data_decl(&self, name: &ExternalName) -> &DataDeclaration
[src]
pub fn get_data_decl(&self, name: &ExternalName) -> &DataDeclaration
Get the DataDeclaration
for the function named by name
.
pub fn get_function_definition(
&self,
name: &ExternalName
) -> (Option<&B::CompiledFunction>, &str, &Signature)
[src]
pub fn get_function_definition(
&self,
name: &ExternalName
) -> (Option<&B::CompiledFunction>, &str, &Signature)
Get the definition for the function named by name
, along with its name
and signature.
pub fn get_data_definition(
&self,
name: &ExternalName
) -> (Option<&B::CompiledData>, &str, bool)
[src]
pub fn get_data_definition(
&self,
name: &ExternalName
) -> (Option<&B::CompiledData>, &str, bool)
Get the definition for the data object named by name
, along with its name
and writable flag
pub fn is_function(&self, name: &ExternalName) -> bool
[src]
pub fn is_function(&self, name: &ExternalName) -> bool
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> 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,
impl<'a, B> Sync for ModuleNamespace<'a, B> where
<B as Backend>::CompiledData: Sync,
<B as Backend>::CompiledFunction: Sync,