pub trait Primality:
Clone
+ Copy
+ AddAssign
+ SubAssign
+ PartialOrd {
const ONE: Self;
const FIRST_PRIME: Self;
const LAST_PRIME: Self;
// Required methods
fn is_prime(&self) -> bool;
fn strong_case(&self) -> bool;
}Expand description
Trait for primality over all primitive types
Required Associated Constants§
Sourceconst FIRST_PRIME: Self
const FIRST_PRIME: Self
Minimum prime in the set
Sourceconst LAST_PRIME: Self
const LAST_PRIME: Self
Maximum prime in the set
Required Methods§
Sourcefn strong_case(&self) -> bool
fn strong_case(&self) -> bool
Minimal computation for primality proving
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".