Struct primefactor::PrimeFactors
source · pub struct PrimeFactors { /* private fields */ }
Implementations§
source§impl PrimeFactors
impl PrimeFactors
pub fn value(&self) -> u128
pub fn len(&self) -> usize
pub fn count_factors(&self) -> u32
pub fn is_empty(&self) -> bool
pub fn is_prime(&self) -> bool
pub fn to_factor_vec(&self) -> &Vec<IntFactor>
pub fn to_vec(&self) -> Vec<u128>
pub fn gcd(&self, other: &PrimeFactors) -> PrimeFactors
Trait Implementations§
source§impl Clone for PrimeFactors
impl Clone for PrimeFactors
source§fn clone(&self) -> PrimeFactors
fn clone(&self) -> PrimeFactors
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PrimeFactors
impl Debug for PrimeFactors
source§impl Display for PrimeFactors
impl Display for PrimeFactors
source§impl From<u128> for PrimeFactors
impl From<u128> for PrimeFactors
source§impl<'a> IntoIterator for &'a PrimeFactors
impl<'a> IntoIterator for &'a PrimeFactors
IntFactor interator
source§impl Ord for PrimeFactors
impl Ord for PrimeFactors
source§fn cmp(&self, other: &PrimeFactors) -> Ordering
fn cmp(&self, other: &PrimeFactors) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PrimeFactors
impl PartialEq for PrimeFactors
source§fn eq(&self, other: &PrimeFactors) -> bool
fn eq(&self, other: &PrimeFactors) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PrimeFactors
impl PartialOrd for PrimeFactors
source§fn partial_cmp(&self, other: &PrimeFactors) -> Option<Ordering>
fn partial_cmp(&self, other: &PrimeFactors) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for PrimeFactors
impl StructuralPartialEq for PrimeFactors
Auto Trait Implementations§
impl Freeze for PrimeFactors
impl RefUnwindSafe for PrimeFactors
impl Send for PrimeFactors
impl Sync for PrimeFactors
impl Unpin for PrimeFactors
impl UnwindSafe for PrimeFactors
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more