Skip to main content

Module num

Module num 

Source
Expand description

Numeric error types and result aliases.

num β—‰


StructsΒ§

IncompatibleBounds
β…€ 🚩 The given bounds are incompatible. E.g. lower bound exceeds upper bound.
MismatchedSizes
β…€ 🚩 The provided values are not compatible in size.
NoInverse
β…€ 🚩 An inverse doesn’t exist.
NonNegativeRequired
β…€ 🚩 A non-negative value is required.
NonZeroRequired
β…€ 🚩 A non-zero value is required.
Overflow
β…€ 🚩 An arithmetic overflow error, with an optional associated sign.
PositiveRequired
β…€ 🚩 A positive value is required.

EnumsΒ§

DistError
β…€ 🚩+ Errors validating or constructing probability distributions.
IntError
β…€ 🚩+ All possible integer operation errors.
NicheValueError
β…€ 🚩+ Invalid or problematic values for niche types.
NumError
β…€ 🚩+ A numeric-related error.

Type AliasesΒ§

IntResult
β…€ βš–οΈ A result of a fallible integer operation.
NumResult
β…€ βš–οΈ A numeric-related result.