Enum pcw_fn::PcwFnError
source · pub enum PcwFnError {
JumpsNotStrictlySorted,
TooManyJumpsForFuncs,
TooFewJumpsForFuncs,
}
Expand description
The different errors that can occur when constructing a piecewise function:
- The jumps aren’t strictly sorted (in particular there might be duplicates).
- There’s too many jumps; a piecewise function always has to have exactly one jump less than it has functions.
- There’s not enough jumps for the given number of functions.