Crate goof

Source
Expand description

The goof library is a collection of re-usable error handling structs and patterns that are meant to make error handling lightweight, portable and inter-convertible.

Structs§

Mismatch
This structure should be used in cases where a value must be exactly equal to another value for the process to be valid.
Outside
This structure should be used in cases where a value must lie within a specific range
Unknown
A thing is not a known value from a list

Functions§

assert_eq
Assert that the object is exactly equal to the provided test value.
assert_in
Assert that the object is exactly within the boundaries given by the range operand.
assert_known
assert_known_enum
join