pub fn expect_attribute<T: FromStr, B: BufRead>( key: &str, reader: &Reader<B>, event: &BytesStart<'_>, ) -> Result<T>where <T as FromStr>::Err: Error + Send + Sync + Sized + 'static,
Expect an attribute on an opening tag and return a parsed value