Struct cranelift_interpreter::environment::FunctionStore
source · pub struct FunctionStore<'a> { /* private fields */ }Expand description
A function store contains all of the functions that are accessible to an interpreter.
Implementations§
source§impl<'a> FunctionStore<'a>
impl<'a> FunctionStore<'a>
sourcepub fn index_of(&self, name: &str) -> Option<FuncIndex>
pub fn index_of(&self, name: &str) -> Option<FuncIndex>
Retrieve the index of a function in the function store by its name.
sourcepub fn get_by_index(&self, index: FuncIndex) -> Option<&'a Function>
pub fn get_by_index(&self, index: FuncIndex) -> Option<&'a Function>
Retrieve a function by its index in the function store.
sourcepub fn get_by_name(&self, name: &str) -> Option<&'a Function>
pub fn get_by_name(&self, name: &str) -> Option<&'a Function>
Retrieve a function by its name.
Trait Implementations§
source§impl<'a> Clone for FunctionStore<'a>
impl<'a> Clone for FunctionStore<'a>
source§fn clone(&self) -> FunctionStore<'a>
fn clone(&self) -> FunctionStore<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a> Default for FunctionStore<'a>
impl<'a> Default for FunctionStore<'a>
source§fn default() -> FunctionStore<'a>
fn default() -> FunctionStore<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for FunctionStore<'a>
impl<'a> RefUnwindSafe for FunctionStore<'a>
impl<'a> Send for FunctionStore<'a>
impl<'a> Sync for FunctionStore<'a>
impl<'a> Unpin for FunctionStore<'a>
impl<'a> UnwindSafe for FunctionStore<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more