pub enum UpwardsClosedSetExtractionError {
LocationConstraintOverMultipleLocs(Box<(IntegerExpression<Location>, ComparisonOp, IntegerExpression<Location>)>),
LocationConstraintNonLinear(Box<(IntegerExpression<Location>, ComparisonOp, IntegerExpression<Location>)>),
LocationConstraintNotUpwardsClosed(Box<(IntegerExpression<Location>, ComparisonOp, IntegerExpression<Location>)>),
LocationConstraintWithParameters(Box<(IntegerExpression<Location>, ComparisonOp, IntegerExpression<Location>)>),
}Expand description
Errors that can occur when attempting to extract an upwards closed set of configurations
Variants§
LocationConstraintOverMultipleLocs(Box<(IntegerExpression<Location>, ComparisonOp, IntegerExpression<Location>)>)
Location constraint references multiple locations
The set of such a constraint is not necessarily upwards closed
LocationConstraintNonLinear(Box<(IntegerExpression<Location>, ComparisonOp, IntegerExpression<Location>)>)
Constraint for example contains multiplications between locations
The set of configurations satisfying such a constraint is not necessarily satisfied
LocationConstraintNotUpwardsClosed(Box<(IntegerExpression<Location>, ComparisonOp, IntegerExpression<Location>)>)
Locations constraint references single location but is not necessarily upwards closed
LocationConstraintWithParameters(Box<(IntegerExpression<Location>, ComparisonOp, IntegerExpression<Location>)>)
Comparison with parameters does not correspond to an upwards closed set of locations
Implementations§
Source§impl UpwardsClosedSetExtractionError
impl UpwardsClosedSetExtractionError
Sourcepub fn parse_from_constraint_rewrite_err(
err: ConstraintRewriteError,
constr: (IntegerExpression<Location>, ComparisonOp, IntegerExpression<Location>),
) -> Self
pub fn parse_from_constraint_rewrite_err( err: ConstraintRewriteError, constr: (IntegerExpression<Location>, ComparisonOp, IntegerExpression<Location>), ) -> Self
Convert errors from a [ConstraintRewriteError] to an
UpwardsClosedSetExtractionError
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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<UpwardsClosedSetExtractionError> for ReachabilityTransformationError
impl From<UpwardsClosedSetExtractionError> for ReachabilityTransformationError
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 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