pub struct AnyModule;Trait Implementations§
Source§impl<'vm> Module<'vm> for AnyModule
impl<'vm> Module<'vm> for AnyModule
fn name(&self) -> &'static str
fn call(&self, function: &'vm str, args: RigzArgs) -> Result<Value, VMError>
fn call_extension( &self, this: Rc<RefCell<Value>>, function: &'vm str, args: RigzArgs, ) -> Result<Value, VMError>
fn trait_definition(&self) -> &'static str
fn call_mutable_extension( &self, this: Rc<RefCell<Value>>, function: &'vm str, args: RigzArgs, ) -> Result<Option<Value>, VMError>
fn vm_extension( &self, vm: &mut VM<'vm>, function: &'vm str, args: RigzArgs, ) -> Result<Value, VMError>
Source§impl<'a> ParsedModule<'a> for AnyModule
impl<'a> ParsedModule<'a> for AnyModule
fn module_definition(&self) -> ModuleTraitDefinition<'static>
impl Copy for AnyModule
Auto Trait Implementations§
impl Freeze for AnyModule
impl RefUnwindSafe for AnyModule
impl Send for AnyModule
impl Sync for AnyModule
impl Unpin for AnyModule
impl UnwindSafe for AnyModule
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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