pub struct JanetRng { /* private fields */ }
Expand description
Type representing the Janet pseudorandom number generator
It uses xorwow
variation of Xorshift random number generator
, but the algorithm
used is not set to stone and can be changed in future versions of Janet.
Trait Implementations§
source§impl From<JanetRng> for JanetAbstract
impl From<JanetRng> for JanetAbstract
source§impl IsJanetAbstract for JanetRng
impl IsJanetAbstract for JanetRng
§type Get = JanetRng
type Get = JanetRng
The type that you get when you call
JanetAbstract::get
family of functions. Read moresource§const SIZE: usize = 20usize
const SIZE: usize = 20usize
The size of the type that is being transformed as
JanetAbstract
. Read moresource§fn type_info() -> &'static JanetAbstractType
fn type_info() -> &'static JanetAbstractType
Returns the table of the name of the
Self
and all possible polymorphic function
pointer that a Abstract type can have in Janet.source§impl JanetTypeName for JanetRng
impl JanetTypeName for JanetRng
source§impl RngCore for JanetRng
impl RngCore for JanetRng
source§fn fill_bytes(&mut self, dest: &mut [u8])
fn fill_bytes(&mut self, dest: &mut [u8])
Fill
dest
with random data. Read moreAuto Trait Implementations§
impl Freeze for JanetRng
impl RefUnwindSafe for JanetRng
impl Send for JanetRng
impl Sync for JanetRng
impl Unpin for JanetRng
impl UnwindSafe for JanetRng
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