pub fn does_match(&self, stack: &[Scope]) -> Option<MatchPower> {
        // if there are any exclusions, and any one of them matches, then this selector doesn't match
        if self.excludes.iter().any(|sel| sel.is_empty() || sel.does_match(stack).is_some()) {
            return None;
        }
        if self.path.is_empty() {
            // an empty scope selector always matches with a score of 1
            Some(MatchPower(0o1u64 as f64))
        } else {
            self.path.does_match(stack)
        }
    }
/// Checks if this selector matches a given scope stack.
///
/// See [`ScopeSelectors::does_match`] for more info.
///
/// [`ScopeSelectors::does_match`]: struct.ScopeSelectors.html#method.does_match
Checks if this selector matches a given scope stack.


Checks if this selector matches a given scope stack .
pub fn does_match(&self, stack: &[Scope]) -> Option<MatchPower> {
        // if there are any exclusions, and any one of them matches, then this selector doesn't match
        if self.excludes.iter().any(|sel| sel.is_empty() || sel.does_match(stack).is_some()) {
            return None;
        }
        if self.path.is_empty() {
            // an empty scope selector always matches with a score of 1
            Some(MatchPower(0o1u64 as f64))
        } else {
            self.path.does_match(stack)
        }
    }
pub fn does_match ( & self , stack : & [ Scope ] ) -> Option < MatchPower > { // if there are any exclusions, and any one of them matches, then this selector doesn't match if self . excludes . iter ( ) . any ( | sel | sel . is_empty ( ) || sel . does_match ( stack ) . is_some ( ) ) { return None ; } if self . path . is_empty ( ) { // an empty scope selector always matches with a score of 1 Some ( MatchPower ( 0o1u64 as f64 ) ) } else { self . path . does_match ( stack ) } }
Checks if this selector matches a given scope stack.
Checks if this selector matches a given scope stack .
&self
stack
&[Scope]
&self
stack
&[Scope]