nautilus_core

Module correctness

Source
Expand description

Functions for correctness checks similar to the design by contract philosophy.

This module provides validation checking of function or method conditions.

A condition is a predicate which must be true just prior to the execution of some section of code - for correct behavior as per the design specification.

An anyhow::Result is returned with a descriptive message when the condition check fails.

Constants§

  • A message prefix that can be used with calls to expect or other assertion-related functions.

Functions§