Module malachite_base::num::basic::traits

source ·
Expand description

Traits for constants.

Traits§

  • Provides the constant (positive) Infinity.
  • Provides the constant NaN.
  • Provides the constant -Infinity.
  • Provides the constant -1.
  • Provides the constant -0.
  • Provides the constant 1.
  • Provides the constant 1/2.
  • Provides the prime constant, whose $n$th bit (starting from $n=1$) is true if and only if $n$ is prime.
  • Provides the Thue-Morse constant, whose bits are the Thue-Morse sequence.
  • Provides the constant 2.
  • Provides the constant 0.