pub fn is_selection(&self, sel: &Selection) -> bool {
        if self.length() == 0 || sel.length() == 0 {
            return false;
        }

        let mut m = HashSet::with_capacity(sel.length());
        for node in sel.nodes() {
            m.insert(node.id);
        }

        for node in self.nodes() {
            if m.contains(&node.id) {
                return true;
            }
        }

        false
    }
/// Checks the current matches set of elemets against a selection and
/// returns true if at least one of these elements matches.
Checks the current matches set of elemets against a selection and
returns true if at least one of these elements matches.
Checks the current matches set of elemets against a selection and returns true if at least one of these elements matches .
pub fn is_selection(&self, sel: &Selection) -> bool {
        if self.length() == 0 || sel.length() == 0 {
            return false;
        }
        let mut m = HashSet::with_capacity(sel.length());
        for node in sel.nodes() {
            m.insert(node.id);
        }
        for node in self.nodes() {
            if m.contains(&node.id) {
                return true;
            }
        }
        false
    }
pub fn is_selection ( & self , sel : & Selection ) -> bool { if self . length ( ) == 0 || sel . length ( ) == 0 { return false ; } let mut m = HashSet :: with_capacity ( sel . length ( ) ) ; for node in sel . nodes ( ) { m . insert ( node . id ) ; } for node in self . nodes ( ) { if m . contains ( & node . id ) { return true ; } } false }
Checks the current matches set of elemets against a selection and
returns true if at least one of these elements matches.
Checks the current matches set of elemets against a selection and returns true if at least one of these elements matches .
&self
sel
&Selection
&self
sel
&Selection