Enum pobsd_parser::parser::ParserResult
source · pub enum ParserResult {
WithError(Vec<Game>, Vec<usize>),
WithoutError(Vec<Game>),
}
Expand description
Represent the result of the parsing.
If there is no error, the ParserResult::WithoutError
variant
is returned holding a vector of the games in the database. If there
is at least one error, the ParserResult::WithError
variant is
returned holding a vector of the games in the database and a vector
of the lines where errors occured. If in strict mode only the games
parsed before the error occured will be returned.
Variants§
Trait Implementations§
source§impl From<ParserResult> for Vec<Game>
impl From<ParserResult> for Vec<Game>
source§fn from(val: ParserResult) -> Self
fn from(val: ParserResult) -> Self
Converts to this type from the input type.