chiark / gitweb /
server: boundary_finder plumbing
[hippotat.git] / src / multipart.rs
index 9f3fca9fade6b2533c35161f6e704e7fdcd2f35f..b858039c73e782c6993442548e70bf08c9f9be99 100644 (file)
@@ -15,6 +15,8 @@ pub struct Component<'b> {
 #[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)