Module core::num

1.0.0 · source ·
Expand description

Numeric traits and functions for the built-in numeric types.

Modules

  • bignumExperimental
    Custom arbitrary-precision number (bignum) implementation.
  • dec2fltExperimental
    Converting decimal strings into IEEE 754 binary floating point numbers.
  • diy_floatExperimental
    Extended precision “soft float”, for internal use only.
  • error 🔒
    Error types for conversion to integral types.
  • flt2decExperimental
    Floating-point number to decimal conversion routines.
  • fmtExperimental
    Shared utilities used by both float and integer formatting.
  • int_log10 🔒
  • int_macros 🔒
  • nonzero 🔒
    Definitions of integer that is known not to equal zero.
  • saturating 🔒 Experimental
    Definitions of Saturating<T>.
  • wrapping 🔒
    Definitions of Wrapping<T>.

Macros

Structs

  • SaturatingExperimental
    Provides intentionally-saturating arithmetic on T.
  • An integer that is known not to equal zero.
  • An integer that is known not to equal zero.
  • An integer that is known not to equal zero.
  • An integer that is known not to equal zero.
  • An integer that is known not to equal zero.
  • An integer that is known not to equal zero.
  • An integer that is known not to equal zero.
  • An integer that is known not to equal zero.
  • An integer that is known not to equal zero.
  • An integer that is known not to equal zero.
  • An integer that is known not to equal zero.
  • An integer that is known not to equal zero.
  • An error which can be returned when parsing a float.
  • An error which can be returned when parsing an integer.
  • The error type returned when a checked integral type conversion fails.
  • Provides intentionally-wrapped arithmetic on T.

Enums

  • A classification of floating point numbers.
  • Enum to store the various types of errors that can cause parsing an integer to fail.

Constants

Traits

Functions

  • can_not_overflowExperimental
    Determines if a string of text of that length of that radix could be guaranteed to be stored in the given type T. Note that if the radix is known to the compiler, it is just the check of digits.len that is done at runtime.