#[non_exhaustive]#[repr(u32)]pub enum RNGtype {
WICHMANN_HILL = 0,
MARSAGLIA_MULTICARRY = 1,
SUPER_DUPER = 2,
MERSENNE_TWISTER = 3,
KNUTH_TAOCP = 4,
USER_UNIF = 5,
KNUTH_TAOCP2 = 6,
LECUYER_CMRG = 7,
}Expand description
RNG type enum from R_ext/Random.h
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
WICHMANN_HILL = 0
Wichmann-Hill generator.
MARSAGLIA_MULTICARRY = 1
Marsaglia-Multicarry generator.
SUPER_DUPER = 2
Super-Duper generator.
MERSENNE_TWISTER = 3
Mersenne Twister generator.
KNUTH_TAOCP = 4
Knuth TAOCP generator.
USER_UNIF = 5
User-supplied uniform generator.
KNUTH_TAOCP2 = 6
Knuth TAOCP 2002 variant.
LECUYER_CMRG = 7
L’Ecuyer-CMRG generator.
Trait Implementations§
impl Copy for RNGtype
impl Eq for RNGtype
impl StructuralPartialEq for RNGtype
Auto Trait Implementations§
impl Freeze for RNGtype
impl RefUnwindSafe for RNGtype
impl Send for RNGtype
impl Sync for RNGtype
impl Unpin for RNGtype
impl UnsafeUnpin for RNGtype
impl UnwindSafe for RNGtype
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