Struct restricted_tuple::GeneratorWithCache
[−]
[src]
pub struct GeneratorWithCache<'a, T: 'a + Clone> { /* fields omitted */ }
Experimental generator with cache
This should have the identical behavior as Generator, but could be faster, as it caches counting result inside. The drawback is that it requires a mutable reference to call generate method.
Methods
impl<'a, T: 'a + Clone> GeneratorWithCache<'a, T>
[src]
fn from_generator(generator: &'a Generator<'a, T>) -> GeneratorWithCache<'a, T>
fn generate(&mut self, length: usize, value: BigUint) -> Vec<T>
Trait Implementations
impl<'a, T: Clone + 'a + Clone> Clone for GeneratorWithCache<'a, T>
[src]
fn clone(&self) -> GeneratorWithCache<'a, T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more