pub struct PartialFactors {
power2: u32,
power3: u32,
power5: u32,
power7: u32,
power11: u32,
other_factors: usize,
}Fields§
§power2: u32§power3: u32§power5: u32§power7: u32§power11: u32§other_factors: usizeImplementations§
Source§impl PartialFactors
impl PartialFactors
pub fn compute(len: usize) -> Self
pub fn get_power2(&self) -> u32
pub fn get_power3(&self) -> u32
pub fn get_power5(&self) -> u32
pub fn get_power7(&self) -> u32
pub fn get_power11(&self) -> u32
pub fn get_other_factors(&self) -> usize
pub fn product(&self) -> usize
pub fn product_power2power3(&self) -> usize
pub fn divide_by(&self, divisor: &PartialFactors) -> Option<PartialFactors>
Trait Implementations§
Source§impl Clone for PartialFactors
impl Clone for PartialFactors
Source§fn clone(&self) -> PartialFactors
fn clone(&self) -> PartialFactors
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PartialFactors
Auto Trait Implementations§
impl Freeze for PartialFactors
impl RefUnwindSafe for PartialFactors
impl Send for PartialFactors
impl Sync for PartialFactors
impl Unpin for PartialFactors
impl UnsafeUnpin for PartialFactors
impl UnwindSafe for PartialFactors
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