harmonize partial strings with complete strings (#276), make Addr a copyable type

This commit is contained in:
Mark Thom
2020-04-03 10:22:46 -06:00
parent cac76d4739
commit 141f3bcec3
33 changed files with 1229 additions and 885 deletions

View File

@@ -282,9 +282,9 @@ impl ClauseConsistency for Rule {
fn name_and_module(&self) -> Option<(ClauseName, ClauseName)> {
Some((self.head.0.owning_module(), self.head.0.clone()))
}
fn arity(&self) -> usize {
self.head.1.len()
self.head.1.len()
}
}
@@ -597,7 +597,7 @@ impl Into<HeapCellValue> for Number {
}
}
impl Number {
impl Number {
#[inline]
pub fn is_positive(&self) -> bool {
match self {