pub enum Var {
NameRef(VarName),
ConstantAsVar(i32),
}
Expand description
Representation of a Minion Variable.
A variable can either be a named variable, or an anomynous “constant as a variable”.
The latter is not stored in the symbol table, or counted in Minions internal list of all variables, but is used to allow the use of a constant in the place of a variable in a constraint.
Variants§
Trait Implementations§
impl Eq for Var
impl StructuralPartialEq for Var
Auto Trait Implementations§
impl Freeze for Var
impl RefUnwindSafe for Var
impl Send for Var
impl Sync for Var
impl Unpin for Var
impl UnwindSafe for Var
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