pub struct Sieve {
words: Vec<u64>,
}
Fields§
§words: Vec<u64>
Implementations§
Source§impl Sieve
impl Sieve
fn mark_nonprime(&mut self, value: u32)
fn is_known_prime(&self, value: u32) -> bool
fn num_values(&self) -> u32
pub fn grow(&mut self)
pub fn is_prime(&mut self, value: u32) -> bool
pub fn primes(&mut self) -> Primes<'_> ⓘ
pub fn factors(&mut self, value: u32) -> Factors<'_> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sieve
impl RefUnwindSafe for Sieve
impl Send for Sieve
impl Sync for Sieve
impl Unpin for Sieve
impl UnwindSafe for Sieve
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