/// Insert many groups into this list, and then sort the groups to retain
/// the order.
Insert many groups into this list, and then sort the groups to retain
the order.
Insert many groups into this list and then sort the groups to retain the order .
pub fn add_groups(&mut self, group: impl Iterator<Item = GroupRef>) {
        self.map.extend(group.map(|g| {
            let guard = g.read(false);
            let id = guard.id().to_owned();
            let importance = guard.meta().importance;
            drop(guard);
            (id, (importance, g))
        }));
        self.sort_self();
    }
pub fn add_groups ( & mut self , group : impl Iterator < Item = GroupRef > ) { self . map . extend ( group . map ( | g | { let guard = g . read ( false ) ; let id = guard . id ( ) . to_owned ( ) ; let importance = guard . meta ( ) . importance ; drop ( guard ) ; ( id , ( importance , g ) ) } ) ) ; self . sort_self ( ) ; }
Insert many groups into this list, and then sort the groups to retain
the order.
Insert many groups into this list and then sort the groups to retain the order .
&mut self
group
impl Iterator<Item = GroupRef>