# Module std::num

1.0.0 · source ·
Expand description

Additional functionality for numerics.

This module provides some extra types that are useful when doing numerical work. See the individual documentation for each piece for more information.

## Structs

- NonZeroI8
  An integer that is known not to equal zero.
- NonZeroI16
  An integer that is known not to equal zero.
- NonZeroI32
  An integer that is known not to equal zero.
- NonZeroI64
  An integer that is known not to equal zero.
- NonZeroI128
  An integer that is known not to equal zero.
- NonZeroIsize
  An integer that is known not to equal zero.
- NonZeroU8
  An integer that is known not to equal zero.
- NonZeroU16
  An integer that is known not to equal zero.
- NonZeroU32
  An integer that is known not to equal zero.
- NonZeroU64
  An integer that is known not to equal zero.
- NonZeroU128
  An integer that is known not to equal zero.
- NonZeroUsize
  An integer that is known not to equal zero.
- ParseFloatError
  An error which can be returned when parsing a float.
- ParseIntError
  An error which can be returned when parsing an integer.
- Saturating
  Provides intentionally-saturating arithmetic on `T`.
- TryFromIntError
  The error type returned when a checked integral type conversion fails.
- Wrapping
  Provides intentionally-wrapped arithmetic on `T`.

## Enums

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