devela

Module num

Source
Expand description

Numerical types and math operations.
num::{algebra, logic, niche, rand, wave}

Extends: std::{cmp, num}


Modules§

  • algalg
    Linear algebra and symbolic computation.
  • geomgeom
    Geometric types and operations, spatial constructs and analysis.
  • Logic related types and functionality.
  • Numeric types with niche memory layout optimization.
  • randrand
    Random number generation.
  • wavewave
    Wavelets.

Structs§

  • Castprim···
    Provides const casting, joining and splitting operations between primitives.
  • Provides comparing methods for T.
  • Faster divisor for division and modulo operations.
  • Provides comprehensive floating-point operations for T, most of them const.
  • Provides comprehensive fractional operations on T, most of them const.
  • A return type for the calculated GCD and the Bézout coeficients.
  • Provides comprehensive integer operations on T, most of them const.
  • Represents an interval with a lower and an upper bound.
  • core A helper struct for reverse ordering.

Enums§

  • core A classification of floating point numbers.
  • 🚩+ A numeric-related error.
  • core The result of a comparison between two values.
  • Represents the sign of a number.
  • UnitBiunit
    Binary unit prefixes.
  • UnitSiunit
    SI (metric) unit prefixes.

Traits§

  • core Trait for comparisons corresponding to equivalence relations.
  • Extension trait for floating-point types. Associated methods.
  • Extension trait for floating-point types. Associated constants.
  • Common trait for numeric types.
  • Common trait for integer types.
  • Common auto-trait for referenced numeric types.
  • Common auto-trait for referenced integer types.
  • core Trait for types that form a total order.
  • core Trait for comparisons using the equality operator.
  • core Trait for types that form a partial order.
  • Offers methods for casting between primitives.
  • Offers methods to construct a primitive from an array or slice of smaller primitives.
  • Offers methods to split a primitive into an array of smaller primitives.
  • Unitunit
    Unit prefixes.

Functions§

Type Aliases§

  • Represents the absence of a number.
  • ⚖️ A numeric-related result.
  • ⚙️ A pointer-sized floating-point primitive.
  • ⚙️ A downcasted pointer-sized signed integer primitive.
  • ⚙️ An upcasted pointer-sized signed integer primitive.
  • ⚙️ A downcasted pointer-sized unsigned integer primitive.
  • ⚙️ An upcasted pointer-sized unsigned integer primitive.

Derive Macros§

  • core Derive macro generating an impl of the trait Eq.
  • core Derive macro generating an impl of the trait Ord. The behavior of this macro is described in detail here.
  • core Derive macro generating an impl of the trait PartialEq. The behavior of this macro is described in detail here.
  • core Derive macro generating an impl of the trait PartialOrd. The behavior of this macro is described in detail here.