Module dashu::base

source ·
Expand description

Defintions of common traits

Modules§

  • Trait definitions for approximated values
  • Trait definitions for bitwise operations.
  • Error types.
  • Trait definitions for math operations
  • Trait definitions for operations related to rings (integer/polynomial/etc.)
  • Trait definitions for sign related operations.
  • Some useful utility functions that are also used internally in this crate.

Enums§

Traits§

  • Absolute value.
  • AbsEqDeprecated
    Check whether the magnitude of this number is equal the magnitude of the other number
  • Compare the magnitude of this number to the magnitude of the other number
  • Bit query for integers
  • Compute the cubic root of the number.
  • Computer the floored cubic root of the number and return the remainder at the same time.
  • Compute Euclidean quotient.
  • Compute quotient and remainder at the same time.
  • Compute quotient inplace and return remainder at the same time.
  • Compute Euclidean quotient and remainder at the same time.
  • Fast estimation of the binary logarithm of a number
  • Compute the greatest common divisor between self and the other operand, and return both the common divisor g and the Bézout coefficients respectively.
  • Support encoding and decoding of floats into (mantissa, exponent) parts.
  • Compute the greatest common divisor.
  • Compute the multiplicative inverse (aka. reciprocal) of the number.
  • Functions related to the power of two.
  • Compute Euclidean remainder.
  • This trait marks the number is signed.
  • Compute the square root of the number.
  • Computer the floored square root of the number and return the remainder at the same time.
  • Unsigned absolute value.