Trait random::Source
[−]
[src]
pub trait Source { fn read(&mut self) -> u64; fn take<T: Quantity>(&mut self) -> T where Self: Sized { ... } fn iter<'l, T: Quantity>(&'l mut self) -> Sequence<'l, Self, T> where Self: Sized { ... } }
A source of randomness.
Required Methods
Provided Methods
fn take<T: Quantity>(&mut self) -> T where Self: Sized
Return the next quantity.
fn iter<'l, T: Quantity>(&'l mut self) -> Sequence<'l, Self, T> where Self: Sized
Return a sequence of quantities.
Implementors
impl Source for XorshiftPlus
impl Source for Default