pub struct IriConfusedWithPrefix;Expand description
An IRI cannot be written out because it would be read back as a compact IRI.
Raised when neither a term nor a compact IRI could be found for an IRI whose
scheme is itself a term of the active context: emitting the IRI verbatim
would make a reader expand scheme:rest through that term instead.
The specification narrows this to terms whose prefix flag is set and
to IRIs with no authority component (no //); the check here does not
distinguish those cases and so can fire slightly more often.
Trait Implementations§
Source§impl Clone for IriConfusedWithPrefix
impl Clone for IriConfusedWithPrefix
Source§fn clone(&self) -> IriConfusedWithPrefix
fn clone(&self) -> IriConfusedWithPrefix
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IriConfusedWithPrefix
Source§impl Debug for IriConfusedWithPrefix
impl Debug for IriConfusedWithPrefix
Source§impl Display for IriConfusedWithPrefix
impl Display for IriConfusedWithPrefix
Source§impl Error for IriConfusedWithPrefix
impl Error for IriConfusedWithPrefix
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<E> From<IriConfusedWithPrefix> for Error<E>
impl<E> From<IriConfusedWithPrefix> for Error<E>
Source§fn from(_: IriConfusedWithPrefix) -> Self
fn from(_: IriConfusedWithPrefix) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IriConfusedWithPrefix
impl RefUnwindSafe for IriConfusedWithPrefix
impl Send for IriConfusedWithPrefix
impl Sync for IriConfusedWithPrefix
impl Unpin for IriConfusedWithPrefix
impl UnsafeUnpin for IriConfusedWithPrefix
impl UnwindSafe for IriConfusedWithPrefix
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Views this value as an
Unordered reference.impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more