Skip to main content

PrimeGenResAide

Trait PrimeGenResAide 

Source
pub trait PrimeGenResAide<T> {
    // Required methods
    fn uproot_all(self) -> Vec<T>;
    fn uproot_max(self) -> T;
}
Expand description

Helper trait for working with return type of pg and pg_sw which is Result<PrimeGenRes, PrimeGenErr>.

Required Methods§

Source

fn uproot_all(self) -> Vec<T>

Uproots Vec<T> of PrimeGenRes::All(Vec<T>).

Source

fn uproot_max(self) -> T

Uproots T of PrimeGenRes::Max(T).

Implementations on Foreign Types§

Source§

impl<T> PrimeGenResAide<T> for Result<PrimeGenRes<T>, PrimeGenErr>

Source§

fn uproot_all(self) -> Vec<T>

Wraps call to PrimeGenRes::uproot_all().

Panics if not Ok(_) variant.

Source§

fn uproot_max(self) -> T

Wraps call to PrimeGenRes::uproot_max().

Panics if not Ok(_) variant.

Implementors§