Docs.rs
  • sp-arithmetic-7.0.0
    • sp-arithmetic 7.0.0
    • Docs.rs crate page
    • Apache-2.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • github:paritytech:core-devs
    • parity-crate-owner
    • Dependencies
      • parity-scale-codec ^3.0.0 normal
      • integer-sqrt ^0.1.2 normal
      • num-traits ^0.2.8 normal
      • scale-info ^2.1.1 normal
      • serde ^1.0.136 normal
      • sp-debug-derive ^6.0.0 normal
      • sp-std ^6.0.0 normal
      • static_assertions ^1.1.0 normal
      • criterion ^0.3 dev
      • primitive-types ^0.12.0 dev
      • rand ^0.7.2 dev
    • Versions
    • 94.83% of the crate is documented
  • Go to latest version
  • Platform
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

logo

Crate sp_arithmetic

  • Macros
  • Structs
  • Enums
  • Traits
  • Functions
  • Type Definitions
?
Change settings

List of all items

Structs

  • biguint::BigUint
  • fixed_point::FixedI128
  • fixed_point::FixedI64
  • fixed_point::FixedU128
  • fixed_point::FixedU64
  • per_things::PerU16
  • per_things::Perbill
  • per_things::Percent
  • per_things::Permill
  • per_things::Perquintill
  • rational::Rational128
  • rational::RationalInfinite

Enums

  • per_things::Rounding
  • per_things::SignedRounding

Traits

  • Normalizable
  • ThresholdOrd
  • fixed_point::FixedPointNumber
  • fixed_point::FixedPointOperand
  • per_things::MultiplyArg
  • per_things::PerThing
  • per_things::RationalArg
  • per_things::ReciprocalArg
  • traits::AtLeast32Bit
  • traits::AtLeast32BitUnsigned
  • traits::BaseArithmetic
  • traits::Bounded
  • traits::CheckedAdd
  • traits::CheckedDiv
  • traits::CheckedMul
  • traits::CheckedNeg
  • traits::CheckedRem
  • traits::CheckedShl
  • traits::CheckedShr
  • traits::CheckedSub
  • traits::IntegerSquareRoot
  • traits::One
  • traits::SaturatedConversion
  • traits::Saturating
  • traits::Signed
  • traits::UniqueSaturatedFrom
  • traits::UniqueSaturatedInto
  • traits::Unsigned
  • traits::Zero

Macros

  • assert_eq_error_rate

Functions

  • biguint::add_single
  • biguint::mul_single
  • biguint::split
  • helpers_128bit::gcd
  • helpers_128bit::multiply_by_rational_with_rounding
  • helpers_128bit::split
  • helpers_128bit::sqrt
  • helpers_128bit::to_big_uint
  • normalize
  • traits::checked_pow

Type Definitions

  • biguint::Double
  • biguint::Single
  • per_things::InnerOf
  • per_things::UpperOf