remove diff, add subtract to replace it and work with iters, add lt, gt, ltoe, gtoe for < > <= >=

This commit is contained in:
Mark
2023-11-07 18:37:37 +01:00
parent 79660c1976
commit db59a1e92e
12 changed files with 161 additions and 21 deletions

View File

@@ -329,6 +329,9 @@ impl MersType for Type {
fn is_included_in_single(&self, target: &dyn MersType) -> bool {
self.types.iter().all(|t| t.is_included_in_single(target))
}
fn is_included_in(&self, target: &dyn MersType) -> bool {
self.types.iter().all(|t| t.is_included_in(target))
}
fn subtypes(&self, acc: &mut Type) {
for t in &self.types {
t.subtypes(acc);