pub struct LaggedFibonacciRand<T> { /* private fields */ }Expand description
implements a subtract-with-carry(lagged Fibonacci) algorithm lagged fibonacci algorithm $$ x_{i} = (x_{i-s} - x_{i-r} - carry_{i-1}) \bmod m $$
Implementations§
Source§impl<T> LaggedFibonacciRand<T>
impl<T> LaggedFibonacciRand<T>
Trait Implementations§
Source§impl<T: Clone> Clone for LaggedFibonacciRand<T>
impl<T: Clone> Clone for LaggedFibonacciRand<T>
Source§fn clone(&self) -> LaggedFibonacciRand<T>
fn clone(&self) -> LaggedFibonacciRand<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl IterSource<u32> for LaggedFibonacciRand<u32>
impl IterSource<u32> for LaggedFibonacciRand<u32>
Source§impl IterSource<u64> for LaggedFibonacciRand<u64>
impl IterSource<u64> for LaggedFibonacciRand<u64>
Source§impl IterSource<usize> for LaggedFibonacciRand<usize>
impl IterSource<usize> for LaggedFibonacciRand<usize>
Auto Trait Implementations§
impl<T> Freeze for LaggedFibonacciRand<T>where
T: Freeze,
impl<T> RefUnwindSafe for LaggedFibonacciRand<T>where
T: RefUnwindSafe,
impl<T> Send for LaggedFibonacciRand<T>where
T: Send,
impl<T> Sync for LaggedFibonacciRand<T>where
T: Sync,
impl<T> Unpin for LaggedFibonacciRand<T>where
T: Unpin,
impl<T> UnsafeUnpin for LaggedFibonacciRand<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for LaggedFibonacciRand<T>where
T: UnwindSafe,
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