Expand description
The error
module contains the Error
enum that contains all error types used by this crate.
The Error
enum implements constructors for its struct variants, because those are ugly to construct.
The module also contains some helper functions starting with expect_
that check for a condition and return Err(_)
if the condition is not fulfilled.
They are meant as shortcuts to not write the same error checking code everywhere.
Enums§
- Evalexpr
Error - Errors used in this crate.
Functions§
- expect_
function_ argument_ amount - Returns
Ok(())
if the actual and expected parameters are equal, andErr(Error::WrongFunctionArgumentAmount)
otherwise. - expect_
number_ or_ string - Returns
Ok(())
if the given value is a string or a numeric
Type Aliases§
- Evalexpr
Result - Standard result type used by this crate.