struct TLAParsingContext<'a> {
param_to_corr_procs: Option<IntegerExpression<Location>>,
int_macro: HashMap<String, Pair<'a, Rule>>,
spec_declaration_parsed: bool,
rule_ids_in_next: Vec<u32>,
}Expand description
Helper context for storing information such as declared integer macros during parsing
Fields§
§param_to_corr_procs: Option<IntegerExpression<Location>>Integer expression that defines relation of the number of correct processes to the other parameters of a threshold automaton
int_macro: HashMap<String, Pair<'a, Rule>>Integers macros that have already been declared
spec_declaration_parsed: boolStores whether a Spec declaration has already been parsed
rule_ids_in_next: Vec<u32>Stores which rule ids appear inside the Next declaration
Implementations§
Source§impl TLAParsingContext<'_>
impl TLAParsingContext<'_>
Auto Trait Implementations§
impl<'a> Freeze for TLAParsingContext<'a>
impl<'a> RefUnwindSafe for TLAParsingContext<'a>
impl<'a> !Send for TLAParsingContext<'a>
impl<'a> !Sync for TLAParsingContext<'a>
impl<'a> Unpin for TLAParsingContext<'a>
impl<'a> UnwindSafe for TLAParsingContext<'a>
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> 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