fix:
Negative numbers now show up as a constant instead of 0 - that number Expect on constructors without field maps no longer panics Expect on constructors with discard as assigned field names now no longer throws free unique
This commit is contained in:
@@ -202,6 +202,10 @@ impl<T> Term<T> {
|
||||
pub fn is_unit(&self) -> bool {
|
||||
matches!(self, Term::Constant(c) if c.as_ref() == &Constant::Unit)
|
||||
}
|
||||
|
||||
pub fn is_int(&self) -> bool {
|
||||
matches!(self, Term::Constant(c) if matches!(c.as_ref(), &Constant::Integer(_)))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, T> Display for Term<T>
|
||||
|
||||
Reference in New Issue
Block a user