Enum libpobsd::parsing::ParserResult
source · pub enum ParserResult {
WithError(Vec<Game>, Vec<usize>),
WithoutError(Vec<Game>),
}
Expand description
Represent the result of the parsing. When in in strict mode, only the games parsed before a parsing error occurred will be returned. In relaxed mode, the parser will do its best to continue parsing games.
Variants§
WithError(Vec<Game>, Vec<usize>)
Result of the parsing when an error occurred. It holds a vector
of Game
parsed from the database and a vector of the lines where
errors occurred.
WithoutError(Vec<Game>)
Result of the parsing when no error occurred. It holds a vector
of Game
parsed from the database.
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