pub enum FromContextMapError {
ParseError(Error),
InvalidIri(InvalidIri<String>),
}
Expand description
Error that can be raised by the ContextLoader::with_context_map_from
constructor function.
This error is raised either if some input document is not JSON, or if it is bound to an invalid IRI.
Variants§
ParseError(Error)
InvalidIri(InvalidIri<String>)
Trait Implementations§
Source§impl Debug for FromContextMapError
impl Debug for FromContextMapError
Source§impl Display for FromContextMapError
impl Display for FromContextMapError
Source§impl Error for FromContextMapError
impl Error for FromContextMapError
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 FromContextMapError
impl From<Error> for FromContextMapError
Source§impl From<InvalidIri<String>> for FromContextMapError
impl From<InvalidIri<String>> for FromContextMapError
Source§fn from(e: InvalidIri<String>) -> Self
fn from(e: InvalidIri<String>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FromContextMapError
impl RefUnwindSafe for FromContextMapError
impl Send for FromContextMapError
impl Sync for FromContextMapError
impl Unpin for FromContextMapError
impl UnwindSafe for FromContextMapError
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