pub struct JsonLdSyntaxError(/* private fields */);
Expand description
An error in the syntax of the parsed file.
Implementations§
Source§impl JsonLdSyntaxError
impl JsonLdSyntaxError
Sourcepub fn code(&self) -> Option<JsonLdErrorCode>
pub fn code(&self) -> Option<JsonLdErrorCode>
The JSON-LD error code related to this error.
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 JsonLdSyntaxError
impl Debug for JsonLdSyntaxError
Source§impl Display for JsonLdSyntaxError
impl Display for JsonLdSyntaxError
Source§impl Error for JsonLdSyntaxError
impl Error for JsonLdSyntaxError
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<JsonLdSyntaxError> for Error
impl From<JsonLdSyntaxError> for Error
Source§fn from(error: JsonLdSyntaxError) -> Self
fn from(error: JsonLdSyntaxError) -> Self
Converts to this type from the input type.
Source§impl From<JsonLdSyntaxError> for JsonLdParseError
impl From<JsonLdSyntaxError> for JsonLdParseError
Source§fn from(source: JsonLdSyntaxError) -> Self
fn from(source: JsonLdSyntaxError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JsonLdSyntaxError
impl RefUnwindSafe for JsonLdSyntaxError
impl Send for JsonLdSyntaxError
impl Sync for JsonLdSyntaxError
impl Unpin for JsonLdSyntaxError
impl UnwindSafe for JsonLdSyntaxError
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