Struct mist_core::parse::MsfParser [−][src]
pub struct MsfParser {}Expand description
Parses the version and Run from a mist split file (msf)
Implementations
impl MsfParser[src]
impl MsfParser[src]pub const VERSION: u8[src]
pub fn parse<R: BufRead>(&self, reader: R) -> Result<Run, String>[src]
pub fn parse<R: BufRead>(&self, reader: R) -> Result<Run, String>[src]Attempt to parse a Run from the given reader. Reader must implement BufRead.
If the file does not specify version in the first line, it is assumed to be a legacy (i.e. not up to date) run and is treated as such. Runs converted from legacy runs will have the new field(s) filled but zeroed.
Errors
- If the reader cannot be read from.
- If a Run (legacy or otherwise) cannot be parsed from the reader.
- If the reader is empty.