pub struct Premise {
pub object: PremiseObject,
pub attribute: PremiseAttribute,
pub operator: PremiseOperator,
pub value: f64,
pub connective: Option<LogicOp>,
}Expand description
A single predicate clause in a rule (§2.8.2).
Fields§
§object: PremiseObjectThe network object being tested.
attribute: PremiseAttributeThe attribute of that object to compare.
operator: PremiseOperatorThe relational comparison operator.
value: f64The right-hand-side threshold value.
connective: Option<LogicOp>Connective joining this premise to the next; None for the last premise.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Premise
impl RefUnwindSafe for Premise
impl Send for Premise
impl Sync for Premise
impl Unpin for Premise
impl UnsafeUnpin for Premise
impl UnwindSafe for Premise
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