pub struct Rng;Expand description
Pesudo-random numbers generator.
Trait Implementations§
Source§impl InstallWith for Rng
impl InstallWith for Rng
Source§fn install_with(module: &mut Module) -> Result<(), ContextError>
fn install_with(module: &mut Module) -> Result<(), ContextError>
Hook to install more things into the module.
Source§impl MaybeTypeOf for Rng
impl MaybeTypeOf for Rng
Source§fn maybe_type_of() -> Option<FullTypeOf>
fn maybe_type_of() -> Option<FullTypeOf>
Type information for the given type.
Source§impl UnsafeToMut for Rng
impl UnsafeToMut for Rng
Source§impl UnsafeToRef for Rng
impl UnsafeToRef for Rng
Source§impl UnsafeToValue for &Rng
impl UnsafeToValue for &Rng
Source§impl UnsafeToValue for &mut Rng
impl UnsafeToValue for &mut Rng
Auto Trait Implementations§
impl Freeze for Rng
impl RefUnwindSafe for Rng
impl Send for Rng
impl Sync for Rng
impl Unpin for Rng
impl UnwindSafe for Rng
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> FromValue for Twhere
T: Any,
impl<T> FromValue for Twhere
T: Any,
Source§fn from_value(value: Value) -> VmResult<T>
fn from_value(value: Value) -> VmResult<T>
Try to convert to the given type, from the given value.