std::num - Rust
Description: API documentation for the Rust `num` mod in crate `std`.
Keywords: rust, rustlang, rust-lang, num

# Module std::num 1.0.0 [−] [src]

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

ParseFloatError | An error which can be returned when parsing a float.
ParseIntError | An error which can be returned when parsing an integer.
Wrapping | Provides intentionally-wrapped arithmetic on `T`.
TryFromIntError | [Unstable] The error type returned when a checked integral type conversion fails.

## Enums

FpCategory | A classification of floating point numbers.

## Traits

One | [Deprecated] [Unstable] Types that have a "one" value.
Zero | [Deprecated] [Unstable] Types that have a "zero" value.

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)