Module common::utils

source ·

Modules

Structs

Enums

  • An auxiliary type to denote an interval variants: (a, b), [a, b), (a, b] and [a, b].

Functions

  • Create fraction as Fixed from BasisPoints value.
  • Check if value belongs valid range of basis points. Returns true if range is valid, false otherwise.
  • Evenly distribute N points inside an interval one of the following ways:
  • Rises base to the power of exp. Differs from std’s pow with const