pub struct RdfSyntaxError(/* private fields */);
Expand description
An error in the syntax of the parsed file.
Implementations§
Source§impl RdfSyntaxError
impl RdfSyntaxError
Sourcepub fn location(&self) -> Option<Range<TextPosition>>
pub fn location(&self) -> Option<Range<TextPosition>>
The location of the error inside of the file.
Trait Implementations§
Source§impl Debug for RdfSyntaxError
impl Debug for RdfSyntaxError
Source§impl Display for RdfSyntaxError
impl Display for RdfSyntaxError
Source§impl Error for RdfSyntaxError
impl Error for RdfSyntaxError
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<RdfSyntaxError> for RdfParseError
impl From<RdfSyntaxError> for RdfParseError
Source§fn from(source: RdfSyntaxError) -> RdfParseError
fn from(source: RdfSyntaxError) -> RdfParseError
Converts to this type from the input type.
Source§impl From<RdfXmlSyntaxError> for RdfSyntaxError
impl From<RdfXmlSyntaxError> for RdfSyntaxError
Source§fn from(error: RdfXmlSyntaxError) -> RdfSyntaxError
fn from(error: RdfXmlSyntaxError) -> RdfSyntaxError
Converts to this type from the input type.
Source§impl From<SyntaxErrorKind> for RdfSyntaxError
impl From<SyntaxErrorKind> for RdfSyntaxError
Source§fn from(source: SyntaxErrorKind) -> RdfSyntaxError
fn from(source: SyntaxErrorKind) -> RdfSyntaxError
Converts to this type from the input type.
Source§impl From<TurtleSyntaxError> for RdfSyntaxError
impl From<TurtleSyntaxError> for RdfSyntaxError
Source§fn from(error: TurtleSyntaxError) -> RdfSyntaxError
fn from(error: TurtleSyntaxError) -> RdfSyntaxError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RdfSyntaxError
impl !RefUnwindSafe for RdfSyntaxError
impl Send for RdfSyntaxError
impl Sync for RdfSyntaxError
impl Unpin for RdfSyntaxError
impl !UnwindSafe for RdfSyntaxError
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