Trait PrimeConstant

Source
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§

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.

Source§

const PRIME_CONSTANT: f32 = 0.414682508f32

Source§

impl PrimeConstant for f64

The prime constant.

Source§

const PRIME_CONSTANT: f64 = 0.41468250985111166f64

Implementors§