pub struct ACSInterval(usize);Expand description
An interval in a ACSThresholdAutomaton
Such a interval is internally only represents an integer, which is the index
of the interval in the current interval order. That is it describes the
index of an [taco_interval_ta::interval::Interval] for a
specific variable, as defined by the
[IntervalThresholdAutomaton].
It is important to not mix ACSInterval of different automata as it
can result in panics and wrong results, as validation has been omitted for
better performance.
Tuple Fields§
§0: usizeImplementations§
Source§impl ACSInterval
impl ACSInterval
Sourcepub fn display(&self, var: &CSVariable, ta: &ACSThresholdAutomaton) -> String
pub fn display(&self, var: &CSVariable, ta: &ACSThresholdAutomaton) -> String
Get a string representation of the interval, i.e., get the string
representation of the corresponding
[taco_interval_ta::interval::Interval]
Trait Implementations§
Source§impl Clone for ACSInterval
impl Clone for ACSInterval
Source§fn clone(&self) -> ACSInterval
fn clone(&self) -> ACSInterval
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 Debug for ACSInterval
impl Debug for ACSInterval
Source§impl Hash for ACSInterval
impl Hash for ACSInterval
Source§impl Ord for ACSInterval
impl Ord for ACSInterval
Source§fn cmp(&self, other: &ACSInterval) -> Ordering
fn cmp(&self, other: &ACSInterval) -> Ordering
1.21.0 · 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 PartialEq for ACSInterval
impl PartialEq for ACSInterval
Source§impl PartialOrd for ACSInterval
impl PartialOrd for ACSInterval
Source§impl PartialOrder for ACSInterval
impl PartialOrder for ACSInterval
fn part_cmp(&self, other: &Self) -> PartialOrdCompResult
Source§fn is_greater_or_equal(&self, other: &Self) -> bool
fn is_greater_or_equal(&self, other: &Self) -> bool
Check whether
self is greater or equal to other in the partial orderSource§fn is_smaller_or_equal(&self, other: &Self) -> bool
fn is_smaller_or_equal(&self, other: &Self) -> bool
Check whether
self is smaller or equal to other in the partial orderimpl Copy for ACSInterval
impl Eq for ACSInterval
impl StructuralPartialEq for ACSInterval
Auto Trait Implementations§
impl Freeze for ACSInterval
impl RefUnwindSafe for ACSInterval
impl Send for ACSInterval
impl Sync for ACSInterval
impl Unpin for ACSInterval
impl UnwindSafe for ACSInterval
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