fn check_end<'a, B: BufRead>(
    e: XmlBytesEnd<'a>,
    key: &str,
    reader: &XmlReader<B>,
) -> Result<XmlBytesEnd<'a>> {
    if e.name() == key.as_bytes() {
        Ok(e)
    } else {
        Err(Error::ExpectedEndTag(
            key.to_owned(),
            reader.decode(e.name()).into_owned(),
        ))
    }
}
/// Check whether an end tag matches the provided `key`
Check whether an end tag matches the provided `key`
Check whether an end tag matches the provided ` key `
fn check_end<'a, B: BufRead>(
    e: XmlBytesEnd<'a>,
    key: &str,
    reader: &XmlReader<B>,
) -> Result<XmlBytesEnd<'a>> {
    if e.name() == key.as_bytes() {
        Ok(e)
    } else {
        Err(Error::ExpectedEndTag(
            key.to_owned(),
            reader.decode(e.name()).into_owned(),
        ))
    }
}
fn check_end < ' a , B : BufRead > ( e : XmlBytesEnd < ' a > , key : & str , reader : & XmlReader < B > , ) -> Result < XmlBytesEnd < ' a > > { if e . name ( ) == key . as_bytes ( ) { Ok ( e ) } else { Err ( Error :: ExpectedEndTag ( key . to_owned ( ) , reader . decode ( e . name ( ) ) . into_owned ( ) , ) ) } }
Check whether an end tag matches the provided `key`
Check whether an end tag matches the provided ` key `
e
XmlBytesEnd<'a>
key
&str
reader
&XmlReader<B>
e
XmlBytesEnd<'a>
key
&str
reader
&XmlReader<B>