Skip to main content

Module error

Module error 

Source
Expand description

Errors of the value types and numeric kernels.

KernelError uses only the kernel’s vocabulary: non-finite or out-of-range numbers, undersized buffers or stores, unsolvable systems, undefined quantities, missing inputs, reversed clocks. Algorithm-specific errors (deviation tables, sailings) belong to the crate that owns the algorithm, which wraps this type via From.

#[non_exhaustive]: variants may be added in a minor release; match with a wildcard arm.

ensure_finite and ensure_range are public so adapters validate sensor input the same way the value types do.

Enums§

KernelError
Kernel operation failure.

Constants§

EXCERPT_BYTES
Maximum bytes of offending input carried by an error.

Functions§

ensure_finite
Checks that a value is finite.
ensure_range
Checks that a value is finite and within [min, max].

Type Aliases§

Excerpt
Excerpt of offending input.
Result
Result alias.