Trait relp_num::NonZeroFactorizable [−][src]
pub trait NonZeroFactorizable: NonZero { type Factor: NonZero + Ord + Clone; type Power: NonZero + Copy + Clone; fn factorize(&self) -> NonZeroFactorization<Self::Factor, Self::Power>; }
Expand description
Creating a factorization of an integer or rational number.
This factorization does not necessarily consist of primes, as this can be computationally expensive.
Associated Types
Some number greater than 1, probably a prime but not necessarily.
Required methods
fn factorize(&self) -> NonZeroFactorization<Self::Factor, Self::Power>
[src]
fn factorize(&self) -> NonZeroFactorization<Self::Factor, Self::Power>
[src]Decompose into factors.
Note that these factors will often be, but are not guaranteed to be, primes.