pub enum TurtleParseError {
Io(Error),
Syntax(TurtleSyntaxError),
}
Expand description
A parsing error.
It is the union of TurtleSyntaxError
and io::Error
.
Variants§
Io(Error)
I/O error during parsing (file not found…).
Syntax(TurtleSyntaxError)
An error in the file syntax.
Trait Implementations§
Source§impl Debug for TurtleParseError
impl Debug for TurtleParseError
Source§impl Display for TurtleParseError
impl Display for TurtleParseError
Source§impl Error for TurtleParseError
impl Error for TurtleParseError
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 TurtleParseError
impl From<Error> for TurtleParseError
Source§impl From<TurtleParseError> for Error
impl From<TurtleParseError> for Error
Source§fn from(error: TurtleParseError) -> Self
fn from(error: TurtleParseError) -> Self
Converts to this type from the input type.
Source§impl From<TurtleSyntaxError> for TurtleParseError
impl From<TurtleSyntaxError> for TurtleParseError
Source§fn from(source: TurtleSyntaxError) -> Self
fn from(source: TurtleSyntaxError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TurtleParseError
impl !RefUnwindSafe for TurtleParseError
impl Send for TurtleParseError
impl Sync for TurtleParseError
impl Unpin for TurtleParseError
impl !UnwindSafe for TurtleParseError
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