fn related(
    propvals: &PropertyValues,
    cats: &BTreeMap<String, BTreeSet<u32>>,
) -> BTreeMap<String, BTreeSet<u32>> {
    let mut sets = BTreeMap::new();
    for (name, components) in related_categories(propvals) {
        let set = sets.entry(name).or_insert(BTreeSet::new());
        for component in components {
            set.extend(cats[&component].iter().cloned());
        }
    }
    sets
}
/// Related returns a set of sets of codepoints corresponding to the "related"
/// groups of categories defined by Table 12 in UAX#44 S5.7.1.
///
/// The given `cats` should correspond to the normal set of general categories,
/// keyed by canonical name.
Related returns a set of sets of codepoints corresponding to the "related"
groups of categories defined by Table 12 in UAX#44 S5.7.1.

The given `cats` should correspond to the normal set of general categories,
keyed by canonical name.
Related returns a set of sets of codepoints corresponding to the " related " groups of categories defined by Table 12 in UAX#44 S5 . 7 . 1 . The given ` cats ` should correspond to the normal set of general categories keyed by canonical name .
fn related(
    propvals: &PropertyValues,
    cats: &BTreeMap<String, BTreeSet<u32>>,
) -> BTreeMap<String, BTreeSet<u32>> {
    let mut sets = BTreeMap::new();
    for (name, components) in related_categories(propvals) {
        let set = sets.entry(name).or_insert(BTreeSet::new());
        for component in components {
            set.extend(cats[&component].iter().cloned());
        }
    }
    sets
}
fn related ( propvals : & PropertyValues , cats : & BTreeMap < String , BTreeSet < u32 > > , ) -> BTreeMap < String , BTreeSet < u32 > > { let mut sets = BTreeMap :: new ( ) ; for ( name , components ) in related_categories ( propvals ) { let set = sets . entry ( name ) . or_insert ( BTreeSet :: new ( ) ) ; for component in components { set . extend ( cats [ & component ] . iter ( ) . cloned ( ) ) ; } } sets }
Related returns a set of sets of codepoints corresponding to the "related"
groups of categories defined by Table 12 in UAX#44 S5.7.1.
Related returns a set of sets of codepoints corresponding to the " related " groups of categories defined by Table 12 in UAX#44 S5 . 7 . 1 .
propvals
&PropertyValues
cats
&BTreeMap<String, BTreeSet<u32>>
propvals
&PropertyValues
cats
&BTreeMap<String, BTreeSet<u32>>