[−][src]Struct cranelift_module::ModuleNamespace
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]
B: Backend,
pub fn get_function_decl(&self, name: &ExternalName) -> &FunctionDeclaration[src]
Get the FunctionDeclaration for the function named by name.
pub fn get_data_decl(&self, name: &ExternalName) -> &DataDeclaration[src]
Get the DataDeclaration for the function named by name.
pub fn get_function_definition(
&self,
name: &ExternalName
) -> (Option<&B::CompiledFunction>, &str, &Signature)[src]
&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]
&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]
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,
<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,
<B as Backend>::CompiledData: Sync,
<B as Backend>::CompiledFunction: Sync,
Blanket Implementations
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,