pub struct ExecutableModule { /* private fields */ }
Implementations§
Source§impl ExecutableModule
impl ExecutableModule
Sourcepub unsafe fn execute_func_unchecked<Args: FunctionArgs<T>, T>(
&self,
func_idx: u32,
args: Args,
) -> T
pub unsafe fn execute_func_unchecked<Args: FunctionArgs<T>, T>( &self, func_idx: u32, args: Args, ) -> T
Executes the function identified by func_idx
.
§Safety
Executes the function without checking the argument types. This can cause undefined memory to be accessed.
pub fn execute_func<Args: FunctionArgs<T> + TypeList, T: TypeList>( &self, func_idx: u32, args: Args, ) -> Result<T, ExecutionError>
pub fn disassemble(&self)
Auto Trait Implementations§
impl Freeze for ExecutableModule
impl !RefUnwindSafe for ExecutableModule
impl Send for ExecutableModule
impl Sync for ExecutableModule
impl Unpin for ExecutableModule
impl !UnwindSafe for ExecutableModule
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more