fn matches(&self, label: &[u8]) -> bool {
        match self {
            Matcher::Any => true,
            Matcher::Label(expected) => expected.as_slice() == label,
        }
    }
/// Tests whether a label matches this `Matcher`.
Tests whether a label matches this `Matcher`.
Tests whether a label matches this ` Matcher ` .
fn matches(&self, label: &[u8]) -> bool {
        match self {
            Matcher::Any => true,
            Matcher::Label(expected) => expected.as_slice() == label,
        }
    }
fn matches ( & self , label : & [ u8 ] ) -> bool { match self { Matcher :: Any => true , Matcher :: Label ( expected ) => expected . as_slice ( ) == label , } }
Tests whether a label matches this `Matcher`.
Tests whether a label matches this ` Matcher ` .
&self
label
&[u8]
&self
label
&[u8]