Enum gambit_parser::Error
source · [−]pub enum Error<'a> {
ParseError(&'a str),
ValidationError(ValidationError),
}Expand description
An error that happens while trying to turn a string into an ExtensiveFormGame
Variants
ParseError(&'a str)
A problem with parsing
This will show the remainder of the string where the parse error occured
ValidationError(ValidationError)
A problem validating the tree after parsing
Trait Implementations
sourceimpl<'a> From<ValidationError> for Error<'a>
impl<'a> From<ValidationError> for Error<'a>
sourcefn from(err: ValidationError) -> Self
fn from(err: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<'a> RefUnwindSafe for Error<'a>
impl<'a> Send for Error<'a>
impl<'a> Sync for Error<'a>
impl<'a> Unpin for Error<'a>
impl<'a> UnwindSafe for Error<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more