pub struct RandomModule;
Trait Implementations§
Source§impl Clone for RandomModule
impl Clone for RandomModule
Source§fn clone(&self) -> RandomModule
fn clone(&self) -> RandomModule
Returns a duplicate 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 Debug for RandomModule
impl Debug for RandomModule
Source§impl<'vm> Module<'vm> for RandomModule
impl<'vm> Module<'vm> for RandomModule
fn name(&self) -> &'static str
fn call(&self, function: &'vm str, args: RigzArgs) -> Result<Value, VMError>
fn trait_definition(&self) -> &'static str
fn call_extension( &self, this: Rc<RefCell<Value>>, function: &'vm str, args: RigzArgs, ) -> Result<Value, VMError>
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 RandomModule
impl<'a> ParsedModule<'a> for RandomModule
fn module_definition(&self) -> ModuleTraitDefinition<'static>
impl Copy for RandomModule
Auto Trait Implementations§
impl Freeze for RandomModule
impl RefUnwindSafe for RandomModule
impl Send for RandomModule
impl Sync for RandomModule
impl Unpin for RandomModule
impl UnwindSafe for RandomModule
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