pub struct Variable(String);Expand description
Shared variable used in a threshold automaton
Transitions in a threshold automaton can be guarded with constraints over a shared variable valuation and can be updated when taking a transition.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl DeriveFromIntegerComp<Variable, ConstraintRewriteError> for LIAVariableConstraint
impl DeriveFromIntegerComp<Variable, ConstraintRewriteError> for LIAVariableConstraint
Source§fn form_ordered_constr(
scaled_t: HashMap<Variable, Fraction>,
thr_c: ThresholdConstraint,
) -> Result<Self, ConstraintRewriteError>
fn form_ordered_constr( scaled_t: HashMap<Variable, Fraction>, thr_c: ThresholdConstraint, ) -> Result<Self, ConstraintRewriteError>
Derive from threshold and map scaled values of
TSource§fn from_integer_expr(
lhs: IntegerExpression<T>,
op: ComparisonOp,
rhs: IntegerExpression<T>,
) -> Result<Self, E>
fn from_integer_expr( lhs: IntegerExpression<T>, op: ComparisonOp, rhs: IntegerExpression<T>, ) -> Result<Self, E>
Derive the the type T from the integer expression
impl Eq for Variable
Source§impl<T> IntoNoDivBooleanExpr<T> for Variable
impl<T> IntoNoDivBooleanExpr<T> for Variable
Source§fn get_scaled_integer_expression(
&self,
scaling_factor: u32,
) -> IntegerExpression<T>
fn get_scaled_integer_expression( &self, scaling_factor: u32, ) -> IntegerExpression<T>
Get the scaled integer expression Read more
Source§fn get_lcm_of_denominators(&self) -> u32
fn get_lcm_of_denominators(&self) -> u32
Get the lcm across all denominators in the object Read more
Source§fn encode_comparison_to_boolean_expression<Q>(
&self,
comparison_op: ComparisonOp,
other: &Q,
) -> BooleanExpression<T>where
Q: IntoNoDivBooleanExpr<T>,
fn encode_comparison_to_boolean_expression<Q>(
&self,
comparison_op: ComparisonOp,
other: &Q,
) -> BooleanExpression<T>where
Q: IntoNoDivBooleanExpr<T>,
Encode the comparison of two expressions into a boolean expression with a
that does not contain any real numbers. Read more
Source§impl IsDeclared<Variable> for InitializedGeneralThresholdAutomatonBuilder
impl IsDeclared<Variable> for InitializedGeneralThresholdAutomatonBuilder
Source§fn is_declared(&self, var: &Variable) -> bool
fn is_declared(&self, var: &Variable) -> bool
Check if object of type T is declared
Source§impl IsDeclared<Variable> for GeneralThresholdAutomaton
impl IsDeclared<Variable> for GeneralThresholdAutomaton
Source§fn is_declared(&self, var: &Variable) -> bool
fn is_declared(&self, var: &Variable) -> bool
Check if object of type T is declared
Source§impl IsDeclared<Variable> for LIAThresholdAutomaton
impl IsDeclared<Variable> for LIAThresholdAutomaton
Source§fn is_declared(&self, obj: &Variable) -> bool
fn is_declared(&self, obj: &Variable) -> bool
Check if object of type T is declared
Source§impl Ord for Variable
impl Ord for Variable
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Variable
impl PartialOrd for Variable
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnsafeUnpin for Variable
impl UnwindSafe for Variable
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