pub fn matches(&self, q: impl Borrow<str>) -> bool {
        match self {
            LabelSet::Positive(ref set) => set.contains(q.borrow()),
            LabelSet::Negative(ref set) => !set.contains(q.borrow()),
        }
    }
/// Returns whether the query matched the `LabelSet`.
///
/// If `self` is `LabelSet::Positive`, `true` is returned if the query was found, `false`
/// otherwise. If `self` is `LabelSet::Negative`, `true` is returned if the query was not foud.
Returns whether the query matched the `LabelSet`.
Returns whether the query matched the ` LabelSet ` .
pub fn matches(&self, q: impl Borrow<str>) -> bool {
        match self {
            LabelSet::Positive(ref set) => set.contains(q.borrow()),
            LabelSet::Negative(ref set) => !set.contains(q.borrow()),
        }
    }
pub fn matches ( & self , q : impl Borrow < str > ) -> bool { match self { LabelSet :: Positive ( ref set ) => set . contains ( q . borrow ( ) ) , LabelSet :: Negative ( ref set ) => ! set . contains ( q . borrow ( ) ) , } }
Returns whether the query matched the `LabelSet`.
Returns whether the query matched the ` LabelSet ` .
&self
q
impl Borrow<str>
&self
q
impl Borrow<str>