use { crate::{ client::{Client, ClientId}, criteria::{RootMatcherMap, clm::RootMatchers, crit_graph::CritRootCriterion}, }, std::rc::Rc, }; pub struct ClmMatchId(pub ClientId); impl CritRootCriterion> for ClmMatchId { fn matches(&self, data: &Rc) -> bool { data.id == self.0 } fn nodes(roots: &RootMatchers) -> Option<&RootMatcherMap, Self>> { Some(&roots.id) } }