# [−] [src] Crate num_integer

Integer trait and functions.

## Compatibility

The `num-integer` crate is tested for rustc 1.8 and greater.

## Structs

ExtendedGcd | Greatest common divisor and Bézout coefficients
IterBinomial | An iterator over binomial coefficients.

## Traits

Integer |
Roots | Provides methods to compute an integer's square root, cube root, and arbitrary `n`th root.

## Functions

binomial | Calculate the binomial coefficient.
cbrt | Returns the truncated principal cube root of an integer -- see Roots::cbrt.
div_ceil | Ceiled integer division
div_floor | Floored integer division
div_mod_floor | Simultaneous floored integer division and modulus
div_rem | Simultaneous integer division and modulus
gcd | Calculates the Greatest Common Divisor (GCD) of the number and `other`. The result is always positive.
gcd_lcm | Calculates the Greatest Common Divisor (GCD) and Lowest Common Multiple (LCM) of the number and `other`.
lcm | Calculates the Lowest Common Multiple (LCM) of the number and `other`.
mod_floor | Floored integer modulus
multinomial | Calculate the multinomial coefficient.
nth_root | Returns the truncated principal `n`th root of an integer -- see Roots::nth_root.
sqrt | Returns the truncated principal square root of an integer -- see Roots::sqrt.

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse 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`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)