pub struct StateClause {
pub entries: Vec<Entry>,
}Expand description
The parsed (state …) clause (SPEC-019 R.1).
Fields§
§entries: Vec<Entry>Implementations§
Source§impl StateClause
impl StateClause
Sourcepub fn names_verb(&self, verb: &str) -> bool
pub fn names_verb(&self, verb: &str) -> bool
Convenience: whether a verb is state-bearing.
Source§impl StateClause
impl StateClause
pub fn lattices(&self) -> impl Iterator<Item = &Definition>
Sourcepub fn resolve_lattices(&mut self)
pub fn resolve_lattices(&mut self)
Rebuild implementation-only table indexes from recognized declarations.
Sourcepub fn domains(&self) -> impl Iterator<Item = (&str, &str, &str)>
pub fn domains(&self) -> impl Iterator<Item = (&str, &str, &str)>
Domain entries in clause order.
Sourcepub fn thresholds(&self) -> impl Iterator<Item = (&str, &str, &[Element])>
pub fn thresholds(&self) -> impl Iterator<Item = (&str, &str, &[Element])>
Threshold entries in clause order: (name, field, elements)
(SPEC-038 CON-3801).
pub fn freezes(&self) -> impl Iterator<Item = (&str, &str, FreezePolicy)>
Sourcepub fn state_bearing_verbs(&self) -> BTreeSet<&str>
pub fn state_bearing_verbs(&self) -> BTreeSet<&str>
Every performative the clause names (state-bearing verbs).
Sourcepub fn replaces_verbs(&self) -> BTreeSet<&str>
pub fn replaces_verbs(&self) -> BTreeSet<&str>
Verbs whose shape carries the reserved :replaces field.
Sourcepub fn data_fields(&self) -> BTreeSet<(&str, &str)>
pub fn data_fields(&self) -> BTreeSet<(&str, &str)>
Every (verb, key) pair any rule or domain reads.
Trait Implementations§
Source§impl Clone for StateClause
impl Clone for StateClause
Source§impl Debug for StateClause
impl Debug for StateClause
Source§impl Default for StateClause
impl Default for StateClause
impl Eq for StateClause
Source§impl PartialEq for StateClause
impl PartialEq for StateClause
impl StructuralPartialEq for StateClause
Auto Trait Implementations§
impl Forget for StateClause
impl Freeze for StateClause
impl Move for StateClause
impl RefUnwindSafe for StateClause
impl Send for StateClausewhere
RawVecInner: Send,
BoxRaw<Definition>: Send,
BoxRaw<Lift>: Send,
BoxRaw<CounterRule>: Send,
BoxRaw<Value>: Send,
impl Sync for StateClausewhere
RawVecInner: Sync,
BoxRaw<Definition>: Sync,
BoxRaw<Lift>: Sync,
BoxRaw<CounterRule>: Sync,
BoxRaw<Value>: Sync,
impl Unpin for StateClause
impl UnsafeUnpin for StateClause
impl UnwindSafe for StateClausewhere
RawVecInner: UnwindSafe,
BoxRaw<Definition>: UnwindSafe,
BoxRaw<Lift>: UnwindSafe,
BoxRaw<CounterRule>: UnwindSafe,
BoxRaw<Value>: UnwindSafe,
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