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.
Auto Trait Implementations§
impl Freeze for ParserResult
impl RefUnwindSafe for ParserResult
impl Send for ParserResult
impl Sync for ParserResult
impl Unpin for ParserResult
impl UnwindSafe for ParserResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more