[][src]Struct red_primality::CertIter

pub struct CertIter { /* fields omitted */ }

Produces a sequence of certified primes.

Cost and behavior should be identical to PrimeIter, since it is a zero-cost wrapper around PrimeIter.

CertIter will panic if it tries to produce a value larger than MAX_u64_PRIME, the same as PrimeIter.

Methods

impl CertIter[src]

pub fn all() -> Self[src]

Returns an CertIter that produces all u64 primes.

pub fn from(n: u64) -> Self[src]

Returns a CertIter that produces all u64 primes at or above n.

pub fn from_pi(pi: PrimeIter) -> Self[src]

Turns a PrimeIter into a CertIter.

Trait Implementations

impl From<PrimeIter> for CertIter[src]

impl Iterator for CertIter[src]

type Item = Prime

The type of the elements being iterated over.

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.