rush_expr_engine 0.1.2

The rules engine is based on the rete algorithm
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::error::Error;
use std::fmt;

#[derive(Default, Debug)]
pub struct NotFoundFieldError(pub String);

impl fmt::Display for NotFoundFieldError {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "not found field[{}]", self.0.as_str())
    }
}

impl Error for NotFoundFieldError {}