pub enum UpwardsClosedSetExtractionError {
LocationConstraintMultiLocation(Box<(HashMap<Location, Fraction>, ThresholdConstraint)>),
LIARewriteError(Box<ConstraintRewriteError>),
LocationConstraintNotUpwardsClosed(Box<(Location, ThresholdConstraint)>),
LocationConstraintWithParameters(Box<(Location, ThresholdConstraint)>),
NestedTemporalOperator,
}Expand description
Errors that can occur when attempting to extract an upwards closed set of configurations
Variants§
LocationConstraintMultiLocation(Box<(HashMap<Location, Fraction>, ThresholdConstraint)>)
Found a constraint involving multiple locations, which is unsupported
LIARewriteError(Box<ConstraintRewriteError>)
Specification uses non-linear expressions, therefore not upwards closed set can be extracted
LocationConstraintNotUpwardsClosed(Box<(Location, ThresholdConstraint)>)
Constraint on process in a specific location is not upwards closed
(this can stem from constraints of the form l < 42)
LocationConstraintWithParameters(Box<(Location, ThresholdConstraint)>)
Constraints on locations contain parameters
NestedTemporalOperator
Expression contains the temporal operator that is not being collapsed
during extraction of the upwards closed set (e.g. a <> inside an
[]-specification)
Trait Implementations§
Source§impl Clone for UpwardsClosedSetExtractionError
impl Clone for UpwardsClosedSetExtractionError
Source§fn clone(&self) -> UpwardsClosedSetExtractionError
fn clone(&self) -> UpwardsClosedSetExtractionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DeriveFromIntegerComp<Location, UpwardsClosedSetExtractionError> for UpwardsClosedSet
impl DeriveFromIntegerComp<Location, UpwardsClosedSetExtractionError> for UpwardsClosedSet
Source§fn form_ordered_constr(
scaled_t: HashMap<Location, Fraction>,
thr_constr: ThresholdConstraint,
) -> Result<Self, UpwardsClosedSetExtractionError>
fn form_ordered_constr( scaled_t: HashMap<Location, Fraction>, thr_constr: ThresholdConstraint, ) -> Result<Self, UpwardsClosedSetExtractionError>
Derive from threshold and map scaled values of
T§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
Source§impl Error for UpwardsClosedSetExtractionError
impl Error for UpwardsClosedSetExtractionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ConstraintRewriteError> for UpwardsClosedSetExtractionError
impl From<ConstraintRewriteError> for UpwardsClosedSetExtractionError
Source§impl From<UpwardsClosedSetExtractionError> for ExtractionError
impl From<UpwardsClosedSetExtractionError> for ExtractionError
Source§fn from(value: UpwardsClosedSetExtractionError) -> Self
fn from(value: UpwardsClosedSetExtractionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UpwardsClosedSetExtractionError
impl PartialEq for UpwardsClosedSetExtractionError
Source§fn eq(&self, other: &UpwardsClosedSetExtractionError) -> bool
fn eq(&self, other: &UpwardsClosedSetExtractionError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpwardsClosedSetExtractionError
Auto Trait Implementations§
impl Freeze for UpwardsClosedSetExtractionError
impl RefUnwindSafe for UpwardsClosedSetExtractionError
impl Send for UpwardsClosedSetExtractionError
impl Sync for UpwardsClosedSetExtractionError
impl Unpin for UpwardsClosedSetExtractionError
impl UnsafeUnpin for UpwardsClosedSetExtractionError
impl UnwindSafe for UpwardsClosedSetExtractionError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more