parse_pattern

Function parse_pattern 

Source
pub fn parse_pattern<R: Read + Seek, H: FnMut(LoadDefect)>(
    reader: &mut R,
    defect_handler: &mut H,
) -> Result<Pattern, LoadErr>
Expand description

reader should be buffered in some way and not do a syscall on every read call.

This function does a lot of read calls