pub struct Rule {
pub name: String,
pub prop_id: String,
pub out_exp: bool,
pub exprs: Vec<RuleExpr>,
pub pv_names: Vec<String>,
pub check_connections: bool,
}Expand description
A rule: sets property prop_id from the first expression that holds.
Fields§
§name: String§prop_id: String§out_exp: boolWhen true the expression’s value is the property value (out_exp).
exprs: Vec<RuleExpr>§pv_names: Vec<String>§check_connections: boolWhether to wait for every PV to connect before evaluating. BOY
evaluates regardless, reading a disconnected PV as INVALID, and an
.opi rule carries check_connections="false" to say so.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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