pub enum ParserError {
IOError(Error),
FileError(String),
TokenError {
span: Range<usize>,
expected: String,
},
TokenErrorFile {
span: Range<usize>,
expected: String,
line: usize,
filename: String,
},
ParseIntError(ParseIntError),
NoHeader,
}Expand description
An error from the VeriPB parsing library.
Variants§
IOError(Error)
Error related to reading the file.
FileError(String)
TokenError
TokenErrorFile
ParseIntError(ParseIntError)
NoHeader
Implementations§
Source§impl ParserError
impl ParserError
Trait Implementations§
Source§impl Debug for ParserError
impl Debug for ParserError
Source§impl Display for ParserError
impl Display for ParserError
Source§impl Error for ParserError
impl Error for ParserError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for ParserError
impl From<Error> for ParserError
Source§impl From<ParseIntError> for ParserError
impl From<ParseIntError> for ParserError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ParserError
impl !UnwindSafe for ParserError
impl Freeze for ParserError
impl Send for ParserError
impl Sync for ParserError
impl Unpin for ParserError
impl UnsafeUnpin for ParserError
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
Source§impl<Enum> FromEnumMut<Enum> for Enum
impl<Enum> FromEnumMut<Enum> for Enum
Source§fn from_enum_mut(e: &mut Enum) -> Option<&mut Enum>
fn from_enum_mut(e: &mut Enum) -> Option<&mut Enum>
The inverse of
EnumExtensions::try_mut_var, see that method’s documentation for more. Read moreSource§impl<Enum> FromEnumRef<Enum> for Enum
impl<Enum> FromEnumRef<Enum> for Enum
Source§fn from_enum_ref(e: &Enum) -> Option<&Enum>
fn from_enum_ref(e: &Enum) -> Option<&Enum>
The inverse of
EnumExtensions::try_ref_var, see that method’s documentation for more. Read moreSource§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more