pub struct RuleBuilder {
rule: Rule,
}Expand description
Builder to construct rules for threshold automata
Fields§
§rule: RuleImplementations§
Source§impl RuleBuilder
impl RuleBuilder
Sourcepub fn with_guard(self, guard: BooleanExpression<Variable>) -> Self
pub fn with_guard(self, guard: BooleanExpression<Variable>) -> Self
Add a guard to the rule
Sourcepub fn with_action(self, action: Action) -> Self
pub fn with_action(self, action: Action) -> Self
Add an action to the rule
Sourcepub fn with_actions(self, actions: impl IntoIterator<Item = Action>) -> Self
pub fn with_actions(self, actions: impl IntoIterator<Item = Action>) -> Self
Add multiple actions to the rule
Trait Implementations§
Source§impl Debug for RuleBuilder
impl Debug for RuleBuilder
Source§impl PartialEq for RuleBuilder
impl PartialEq for RuleBuilder
impl Eq for RuleBuilder
impl StructuralPartialEq for RuleBuilder
Auto Trait Implementations§
impl Freeze for RuleBuilder
impl RefUnwindSafe for RuleBuilder
impl Send for RuleBuilder
impl Sync for RuleBuilder
impl Unpin for RuleBuilder
impl UnwindSafe for RuleBuilder
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