Struct primefactor::PrimeFactors [−][src]
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]
Notable traits for PrimeFactorsIter<'a>
impl<'a> Iterator for PrimeFactorsIter<'a> type Item = IntFactor;
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]
fn clone(&self) -> PrimeFactors
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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?
fn into_iter(self) -> Self::IntoIter
[src]
impl Ord for PrimeFactors
[src]
fn cmp(&self, other: &PrimeFactors) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<PrimeFactors> for PrimeFactors
[src]
fn eq(&self, other: &PrimeFactors) -> bool
[src]
fn ne(&self, other: &PrimeFactors) -> bool
[src]
impl PartialOrd<PrimeFactors> for PrimeFactors
[src]
fn partial_cmp(&self, other: &PrimeFactors) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for PrimeFactors
[src]
impl StructuralPartialEq for PrimeFactors
[src]
Auto Trait Implementations
impl RefUnwindSafe for PrimeFactors
impl Send for PrimeFactors
impl Sync for PrimeFactors
impl Unpin for PrimeFactors
impl UnwindSafe for PrimeFactors
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,