1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
use Error;
/// A generic error type representing failures during rule evaluation or application
/// in a rule engine.
///
/// This enum wraps custom errors (`E`) returned by rule logic, and provides
/// clear separation between evaluation and application failure contexts.
///
/// # Type Parameters
///
/// * `E` - The inner error type returned by specific rule implementations.
/// A concrete error type representing possible failures encountered during
/// rule processing, such as I/O, serialization, or logic errors.
///
/// This enum is useful for rules that interact with external data sources
/// or require deserialization of structured data.