Expand description
Types that maintain a given invariant.
Modules§
- i8
- Terms of type
$t
less than a constant (defined byPartialOrd
comparison). - i16
- Terms of type
$t
less than a constant (defined byPartialOrd
comparison). - i32
- Terms of type
$t
less than a constant (defined byPartialOrd
comparison). - i64
- Terms of type
$t
less than a constant (defined byPartialOrd
comparison). - i128
- Terms of type
$t
less than a constant (defined byPartialOrd
comparison). - isize
- Terms of type
$t
less than a constant (defined byPartialOrd
comparison). - u8
- Terms of type
$t
less than a constant (defined byPartialOrd
comparison). - u16
- Terms of type
$t
less than a constant (defined byPartialOrd
comparison). - u32
- Terms of type
$t
less than a constant (defined byPartialOrd
comparison). - u64
- Terms of type
$t
less than a constant (defined byPartialOrd
comparison). - u128
- Terms of type
$t
less than a constant (defined byPartialOrd
comparison). - usize
- Terms of type
$t
less than a constant (defined byPartialOrd
comparison).
Structs§
- All
- Iterable data structure in which each element satisfies a given invariant.
- AllPairs
- Iterable data structure in which each adjacent pair of elements satisfies a given invariant.
- Finite
Invariant - Finite terms (e.g. for floating points, not
NaN
, infinite, etc.). - Negative
Invariant - Negative terms (defined by comparison to zero).
- NonNegative
Invariant - Non-negative terms (defined by comparison to zero).
- NonPositive
Invariant - Non-positive terms (defined by comparison to zero).
- NonZero
Invariant - Nonzero terms (defined by comparison to zero).
- NotAll
- At least one element in an iterator did not satisfy the given invariant.
- NotAll
Pairs - At least one pair in an iterator did not satisfy the given invariant.
- NotFinite
- A term expected to be finite was not.
- NotNegative
- A term expected to be positive was not.
- NotNon
Negative - A term expected to be non-negative was, in fact, negative.
- NotNon
Positive - A term expected to be non-positive was, in fact, positive.
- NotNon
Zero - A term expected to be nonzero was, in fact, zero.
- NotOn
Unit - Term expected to be on the unit interval (between 0 and 1) was not.
- NotPositive
- A term expected to be positive was not.
- OnUnit
Invariant - Terms on the unit interval (between 0 and 1), either inclusive or exclusive at each extreme.
- Positive
Invariant - Positive terms (defined by comparison to zero).
- Sigma
- Type that maintains a given invariant.
- Sorted
Pair - Pair guaranteed to be sorted left-to-right (optionally permitted to be equal).
Enums§
- OutOf
Order - Some elements in a supposedly sorted iterator were not sorted.
Traits§
- CanBe
Infinite - Types that can represent infinite values.
- One
- Types equipped with a multiplicative identity (i.e., one).
- Test
- Function-like type that checks an invariant and optionally provides an error message.
- Zero
- Types equipped with an additive identity (i.e., zero).
Type Aliases§
- Finite
- Finite terms (e.g. for floating points, not
NaN
, infinite, etc.). - Negative
- Negative terms (defined by comparison to zero).
- NonNegative
- Non-negative terms (defined by comparison to zero).
- NonPositive
- Non-positive terms (defined by comparison to zero).
- NonZero
- Nonzero terms (defined by comparison to zero).
- OnUnit
- Terms on the unit interval (between 0 and 1), either inclusive or exclusive at each extreme.
- Positive
- Positive terms (defined by comparison to zero).
- Sorted
- Iterable data structure guaranteed to be sorted (optionally with or without duplicates).
- Sorted
Invariant - Iterable data structure guaranteed to be sorted (optionally with or without duplicates).