[][src]Struct restricted_tuple::GeneratorWithCache

pub struct GeneratorWithCache<'a, T: 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]

pub fn from_generator(
    generator: &'a Generator<'a, T>
) -> GeneratorWithCache<'a, T>
[src]

pub fn generate(&mut self, length: usize, value: BigUint) -> Vec<T>[src]

Trait Implementations

impl<'a, T: Clone> Clone for GeneratorWithCache<'a, T>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a, T> Sync for GeneratorWithCache<'a, T> where
    T: Sync

impl<'a, T> Unpin for GeneratorWithCache<'a, T>

impl<'a, T> Send for GeneratorWithCache<'a, T> where
    T: Sync

impl<'a, T> UnwindSafe for GeneratorWithCache<'a, T> where
    T: RefUnwindSafe

impl<'a, T> RefUnwindSafe for GeneratorWithCache<'a, T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]