[][src]Struct mun_runtime::DispatchTable

pub struct DispatchTable { /* fields omitted */ }

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]

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]

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]

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]

Removes fn_path from assembly_path as a dependency; decrementing its usage counter.

Trait Implementations

impl Default for DispatchTable[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,