Crate prexel

Source

Modules§

context
Context with functions, variables and constants for evaluating expressions.
error
Common errors for prexel.
evaluator
Evaluator for the math expressions.
function
Traits for functions.
num
Common traits for numeric types.
num_traits
Reexports of the num_traits crate.
ops
Implementations of the function traits for common math operations.
token
Tokens used for prexel.
tokenizer
The tokenizer for prexel.
utils
Common utilities.

Macros§

impl_checked_binary
impl_checked_num_traits_with_field
Implements checked numeric traits (CheckedAdd, CheckedSub, CheckedMul, CheckedDiv, CheckedRem, CheckedNeg) for T using one of its field where T implements From taking a the field type: T::From(typeof field).
impl_checked_num_traits_with_field_and_from_str
Implements checked numeric traits (CheckedAdd, CheckedSub, CheckedMul, CheckedDiv, CheckedRem, CheckedNeg) and FromStr for T using one of its field where T implements From taking a the field type: T::From(typeof field).
impl_checked_ops
impl_checked_unary
impl_unchecked_num_traits_with_field
Implements unchecked numeric traits (Add, Sub, Mul, Div, Rem, Neg) for T using one of its field where T implements From taking a the field type: T::From(typeof field).
impl_unchecked_num_traits_with_field_and_from_str
Implements unchecked numeric traits (Add, Sub, Mul, Div, Rem, Neg) and FromStr for T using one of its field where T implements From taking a the field type: T::From(typeof field).
unsafe_impl_checked_ops

Type Aliases§

Result
An convenient result type used for returning the result of evaluations.