Struct rand_num_gen::XorShift
[−]
[src]
pub struct XorShift { /* fields omitted */ }
Methods
impl XorShift
[src]
Trait Implementations
impl Clone for XorShift
[src]
fn clone(&self) -> XorShift
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for XorShift
[src]
impl PartialEq for XorShift
[src]
fn eq(&self, __arg_0: &XorShift) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &XorShift) -> bool
[src]
This method tests for !=
.
impl Eq for XorShift
[src]
impl PartialOrd for XorShift
[src]
fn partial_cmp(&self, __arg_0: &XorShift) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &XorShift) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &XorShift) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &XorShift) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &XorShift) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for XorShift
[src]
fn cmp(&self, __arg_0: &XorShift) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl Hash for XorShift
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Default for XorShift
[src]
impl SeedableRng<[u32; 4]> for XorShift
[src]
fn from_seed(seed: [u32; 4]) -> XorShift
[src]
fn seed(&self) -> [u32; 4]
[src]
fn set_seed(&mut self, seed: [u32; 4])
[src]
impl Rng for XorShift
[src]
fn next_u32(&mut self) -> u32
[src]
fn next_u64(&mut self) -> u64
[src]
fn next_usize(&mut self) -> usize
[src]
fn next_f32(&mut self) -> f32
[src]
fn next_f64(&mut self) -> f64
[src]
fn next<T>(&mut self) -> T where
T: Random,
Self: Sized,
[src]
T: Random,
Self: Sized,
fn random_iter<'a, T>(&'a mut self) -> RandomIter<'a, T, Self> where
T: Random,
Self: Sized,
[src]
T: Random,
Self: Sized,
fn random_byte_iter<'a>(&'a mut self) -> RandomByteIter<'a, Self> where
Self: Sized,
[src]
Self: Sized,