nautilus_core

Module correctness

source
Expand description

Functions for static condition checks similar to the design by contract philosophy to help ensure logical correctness.

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§