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.


impl<'a, T: 'a + Clone> GeneratorWithCache<'a, T>

Trait Implementations

impl<'a, T: Clone + 'a + Clone> Clone for GeneratorWithCache<'a, T>

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more