pub enum MultExpr {
Lit(u64),
Var(String),
Prim {
op: String,
args: Vec<MultExpr>,
},
}Expand description
Multiplicity expression in RHS multiset comprehension.
Variants§
Lit(u64)
Var(String)
Prim
(u64::- k 1) — checked u64 arithmetic over multiplicity variables
and literals. The op vocabulary mirrors the u64 primitive ops; the
resolver interval-checks the expression against the LHS multiplicity
constraints so an underflow or division by zero is a compile error,
not a runtime one.
Trait Implementations§
impl Eq for MultExpr
impl StructuralPartialEq for MultExpr
Auto Trait Implementations§
impl Freeze for MultExpr
impl RefUnwindSafe for MultExpr
impl Send for MultExpr
impl Sync for MultExpr
impl Unpin for MultExpr
impl UnsafeUnpin for MultExpr
impl UnwindSafe for MultExpr
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.