pub trait PrimeConstant {
const PRIME_CONSTANT: Self;
}
Expand description
Provides the prime constant, whose $n$th bit (starting from $n=1$) is true if and only if $n$ is prime.
Required Associated Constants§
const PRIME_CONSTANT: Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl PrimeConstant for f32
The prime constant.
impl PrimeConstant for f32
The prime constant.
const PRIME_CONSTANT: f32 = 0.414682508f32
Source§impl PrimeConstant for f64
The prime constant.
impl PrimeConstant for f64
The prime constant.