loop_confluent, strong_confluent

This commit is contained in:
elvis
2025-06-23 17:07:46 +02:00
parent 454f1760ed
commit aa33e25771
2 changed files with 53 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#![allow(dead_code)]
use std::collections::{HashMap, HashSet};
use std::hash::{Hash, Hasher};
use std::rc::Rc;
use super::translator::{IdType};
@ -79,6 +80,16 @@ impl RSset {
}
}
impl Hash for RSset {
fn hash<H: Hasher>(&self, state: &mut H) {
let mut a: Vec<&_> = self.identifiers.iter().collect();
a.sort();
for s in a.iter() {
s.hash(state);
}
}
}
// -----------------------------------------------------------------------------
// RSreaction