pub enum DecisionNode {
Leaf(String),
Branch {
key: String,
val: String,
yes_branch: Box<DecisionNode>,
no_branch: Box<DecisionNode>,
},
}Expand description
A simple decision tree node for rule dispatching.
Variants§
Leaf(String)
A leaf with an action string.
Branch
An interior node: check key equals val → yes_branch, else no_branch.
Implementations§
Auto Trait Implementations§
impl Freeze for DecisionNode
impl RefUnwindSafe for DecisionNode
impl Send for DecisionNode
impl Sync for DecisionNode
impl Unpin for DecisionNode
impl UnsafeUnpin for DecisionNode
impl UnwindSafe for DecisionNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more