pub trait FileParser {
    // Required methods
    fn parse_additional_infos(
        line: &[String]
    ) -> Result<AdditionalInfos, ParsingError>;
    fn parse(lines: &[String]) -> Result<Trace, ParsingError>;
}
Expand description

Trait for file parser

Required Methods§

source

fn parse_additional_infos( line: &[String] ) -> Result<AdditionalInfos, ParsingError>

Function that parses the first line of a log

Errors

Return an error if the parsing fails

source

fn parse(lines: &[String]) -> Result<Trace, ParsingError>

Parse the lines of a file

Errors

Return an error if the parsing fails

Object Safety§

This trait is not object safe.

Implementors§