#[allow(non_camel_case_types)]
pub enum PartName { m, d, Other }
+pub type BoundaryFinder = memchr::memmem::Finder<'static>;
+
#[throws(AE)]
pub fn process_component<'b>(warnings: &mut Warnings,
after_leader: &'b [u8], expected: PartName)
let s = if let Some(r) = self.next() { r? } else { return None };
Some(s.parse()?)
}
+
+ pub fn remaining_bytes_len(&self) -> usize {
+ if let Some(last) = self.last {
+ self.buf.len() - last
+ } else {
+ 0
+ }
+ }
}
impl<'b> Iterator for MetadataFieldIterator<'b> {