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