use {crate::tree::ToplevelData, jay_criteria::crit_graph::CritFixedRootCriterion}; pub struct TlmMatchFloating(pub bool); fixed_root_criterion!(TlmMatchFloating, floating); impl CritFixedRootCriterion for TlmMatchFloating { fn matches(&self, data: &ToplevelData) -> bool { data.parent_is_float.get() } }