Struct primefactor::PrimeFactors[][src]

pub struct PrimeFactors { /* fields omitted */ }

Implementations

impl PrimeFactors[src]

pub fn value(&self) -> u128[src]

pub fn len(&self) -> usize[src]

pub fn count_factors(&self) -> u32[src]

pub fn is_empty(&self) -> bool[src]

pub fn is_prime(&self) -> bool[src]

pub fn iter(&self) -> PrimeFactorsIter<'_>

Notable traits for PrimeFactorsIter<'a>

impl<'a> Iterator for PrimeFactorsIter<'a> type Item = IntFactor;
[src]

pub fn to_factor_vec(&self) -> &Vec<IntFactor>[src]

pub fn to_vec(&self) -> Vec<u128>[src]

pub fn gcd(&self, other: &PrimeFactors) -> PrimeFactors[src]

Trait Implementations

impl Clone for PrimeFactors[src]

impl Debug for PrimeFactors[src]

impl Display for PrimeFactors[src]

impl Eq for PrimeFactors[src]

impl From<u128> for PrimeFactors[src]

impl<'a> IntoIterator for &'a PrimeFactors[src]

type Item = IntFactor

The type of the elements being iterated over.

type IntoIter = PrimeFactorsIter<'a>

Which kind of iterator are we turning this into?

impl Ord for PrimeFactors[src]

impl PartialEq<PrimeFactors> for PrimeFactors[src]

impl PartialOrd<PrimeFactors> for PrimeFactors[src]

impl StructuralEq for PrimeFactors[src]

impl StructuralPartialEq for PrimeFactors[src]

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<T> Pointable for T

type Init = T

The type for initializers.

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.