[−][src]Struct mun_runtime::DispatchTable
A runtime dispatch table that maps full paths to function and struct information.
Implementations
impl DispatchTable
[src]
pub fn get_fn(&self, fn_path: &str) -> Option<&FunctionDefinition>
[src]
Retrieves the abi::FunctionDefinition
corresponding to fn_path
, if it exists.
pub fn insert_fn<S: ToString>(
&mut self,
fn_path: S,
fn_info: FunctionDefinition
) -> Option<FunctionDefinition>
[src]
&mut self,
fn_path: S,
fn_info: FunctionDefinition
) -> Option<FunctionDefinition>
Inserts the fn_info
for fn_path
into the dispatch table.
If the dispatch table already contained this fn_path
, the value is updated, and the old
value is returned.
pub fn remove_fn<S: AsRef<str>>(
&mut self,
fn_path: S
) -> Option<FunctionDefinition>
[src]
&mut self,
fn_path: S
) -> Option<FunctionDefinition>
Removes and returns the fn_info
corresponding to fn_path
, if it exists.
pub fn add_fn_dependency<S: ToString, T: ToString>(
&mut self,
assembly_path: S,
fn_path: T,
fn_prototype: FunctionPrototype
)
[src]
&mut self,
assembly_path: S,
fn_path: T,
fn_prototype: FunctionPrototype
)
Adds fn_path
from assembly_path
as a dependency; incrementing its usage counter.
pub fn remove_fn_dependency<S: AsRef<str>, T: AsRef<str>>(
&mut self,
assembly_path: S,
fn_path: T
)
[src]
&mut self,
assembly_path: S,
fn_path: T
)
Removes fn_path
from assembly_path
as a dependency; decrementing its usage counter.
Trait Implementations
impl Default for DispatchTable
[src]
fn default() -> DispatchTable
[src]
Auto Trait Implementations
impl RefUnwindSafe for DispatchTable
impl Send for DispatchTable
impl Sync for DispatchTable
impl Unpin for DispatchTable
impl UnwindSafe for DispatchTable
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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<U> 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,