pub enum ParsingMode {
Strict,
Relaxed,
}
Expand description
The ParsingMode
enum is used to represent the two parsing modes
supported by Parser
:
- a strict mode in which the parsing will stop if a parsing error occurs returning the games processed before the error as well as the line in the input (file or string) where the error occured;
- a relaxed mode in which the parsing will continue even after an error is encountered, the parsing resuming when reaching the next game after the parsing error ; it returns all the games that have been parsed as well as the lines that were ignored due to parsing errors.
Variants§
Auto Trait Implementations§
impl Freeze for ParsingMode
impl RefUnwindSafe for ParsingMode
impl Send for ParsingMode
impl Sync for ParsingMode
impl Unpin for ParsingMode
impl UnwindSafe for ParsingMode
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