pub enum Primality {
Prime,
ProbablyPrime,
Composite,
}Expand description
Possible results of various primality tests.
Variants§
Prime
The number is definitely prime.
ProbablyPrime
The number is probably prime (see the documentation for the details about possible false positives).
Composite
The number is definitely composite.
Implementations§
Trait Implementations§
impl Copy for Primality
impl Eq for Primality
impl StructuralPartialEq for Primality
Auto Trait Implementations§
impl Freeze for Primality
impl RefUnwindSafe for Primality
impl Send for Primality
impl Sync for Primality
impl Unpin for Primality
impl UnwindSafe for Primality
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