pub enum GraphFromFileError<'a> {
FileError(IOError),
PestParseError(PestError),
ParseError(ParseError<'a>),
}
Expand description
An error that can occur when reading from a file.
Variants§
FileError(IOError)
The error occured when manipulating the file (e.g. the file does not exist).
PestParseError(PestError)
The error occured when parsing the file (e.g. the pest parser returned an error).
ParseError(ParseError<'a>)
The error occured when traversing the Rule
s tree returned by the pest parser.
Such error occuring is likely a bug or a missing feature of the library.
Trait Implementations§
Source§impl<'a> Debug for GraphFromFileError<'a>
impl<'a> Debug for GraphFromFileError<'a>
Source§impl Display for GraphFromFileError<'_>
impl Display for GraphFromFileError<'_>
Source§impl Error for GraphFromFileError<'_>
impl Error for GraphFromFileError<'_>
1.30.0 · 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<Rule>> for GraphFromFileError<'_>
impl From<Error<Rule>> for GraphFromFileError<'_>
Source§impl From<Error> for GraphFromFileError<'_>
impl From<Error> for GraphFromFileError<'_>
Source§impl<'a> From<ParseError<'a>> for GraphFromFileError<'a>
impl<'a> From<ParseError<'a>> for GraphFromFileError<'a>
Source§fn from(e: ParseError<'a>) -> Self
fn from(e: ParseError<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for GraphFromFileError<'a>
impl<'a> !RefUnwindSafe for GraphFromFileError<'a>
impl<'a> !Send for GraphFromFileError<'a>
impl<'a> !Sync for GraphFromFileError<'a>
impl<'a> Unpin for GraphFromFileError<'a>
impl<'a> !UnwindSafe for GraphFromFileError<'a>
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<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