pub struct CSVariable(usize);Expand description
A variable in a ACSThresholdAutomaton
Such a variable is internally only represents an index in the representation
of an interval state, i.e., it describes which position of the vector holds
the value of the interval in its concrete counter part (a
[Variable]).
The mapping from [Variable] to CSVariable is
maintained by theACSThresholdAutomaton. It is important to not
mix CSVariable 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 CSVariable
impl CSVariable
Sourcepub fn display(&self, ta: &ACSThresholdAutomaton) -> String
pub fn display(&self, ta: &ACSThresholdAutomaton) -> String
Get a string representation of the variable, i.e., the name of the
[Variable] this variable corresponds to
Trait Implementations§
Source§impl Clone for CSVariable
impl Clone for CSVariable
Source§fn clone(&self) -> CSVariable
fn clone(&self) -> CSVariable
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 CSVariable
impl Debug for CSVariable
Source§impl Hash for CSVariable
impl Hash for CSVariable
Source§impl Index<&CSVariable> for ACSIntervalState
impl Index<&CSVariable> for ACSIntervalState
Source§type Output = ACSInterval
type Output = ACSInterval
The returned type after indexing.
Source§impl Index<CSVariable> for ACSIntervalState
impl Index<CSVariable> for ACSIntervalState
Source§type Output = ACSInterval
type Output = ACSInterval
The returned type after indexing.
Source§impl IndexMut<&CSVariable> for ACSIntervalState
impl IndexMut<&CSVariable> for ACSIntervalState
Source§impl IndexMut<CSVariable> for ACSIntervalState
impl IndexMut<CSVariable> for ACSIntervalState
Source§impl PartialEq for CSVariable
impl PartialEq for CSVariable
impl Copy for CSVariable
impl Eq for CSVariable
impl StructuralPartialEq for CSVariable
Auto Trait Implementations§
impl Freeze for CSVariable
impl RefUnwindSafe for CSVariable
impl Send for CSVariable
impl Sync for CSVariable
impl Unpin for CSVariable
impl UnwindSafe for CSVariable
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