pub struct AlphaNode {
pub field: String,
pub operator: String,
pub value: String,
}Fields§
§field: String§operator: String§value: StringImplementations§
Source§impl AlphaNode
impl AlphaNode
Sourcepub fn matches(&self, fact_field: &str, fact_value: &str) -> bool
pub fn matches(&self, fact_field: &str, fact_value: &str) -> bool
Match with string-based facts (backward compatible)
Sourcepub fn matches_typed(&self, facts: &TypedFacts) -> bool
pub fn matches_typed(&self, facts: &TypedFacts) -> bool
Match with typed facts (new!)
Sourcepub fn with_typed_value(
field: String,
operator: String,
value: FactValue,
) -> Self
pub fn with_typed_value( field: String, operator: String, value: FactValue, ) -> Self
Create with typed value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AlphaNode
impl RefUnwindSafe for AlphaNode
impl Send for AlphaNode
impl Sync for AlphaNode
impl Unpin for AlphaNode
impl UnwindSafe for AlphaNode
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