Skip to main content

PrimeConstant

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".

Implementations on Foreign Types§

Source§

impl PrimeConstant for f32

The prime constant.

Source§

const PRIME_CONSTANT: f32 = 0.4146825

Source§

impl PrimeConstant for f64

The prime constant.

Source§

const PRIME_CONSTANT: f64 = 0.41468250985111166

Implementors§