pub enum Warning {
KeywordLikeTerm(String),
KeywordLikeValue(String),
MalformedIri(String),
}Expand description
Warnings that can be raised during context processing.
None of these abort processing; the specification asks a processor to report them and carry on.
Variants§
KeywordLikeTerm(String)
A term being expanded is not a keyword but has the shape of one (it
starts with @ and is otherwise alphabetic), so it expands to null.
The specification allows this to be reported at that point; this crate currently drops such terms silently and does not raise it.
KeywordLikeValue(String)
The @id or @reverse value of a term definition is not a keyword but
has the shape of one, so the whole term definition is skipped.
MalformedIri(String)
A value being expanded resolved to neither a well-formed IRI nor a blank node identifier, and is retained verbatim as an invalid identifier.
Trait Implementations§
Source§impl<N> DisplayWithContext<N> for Warning
impl<N> DisplayWithContext<N> for Warning
impl Eq for Warning
Source§impl From<MalformedIri> for Warning
impl From<MalformedIri> for Warning
Source§fn from(MalformedIri: MalformedIri) -> Self
fn from(MalformedIri: MalformedIri) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Warning
Auto Trait Implementations§
impl Freeze for Warning
impl RefUnwindSafe for Warning
impl Send for Warning
impl Sync for Warning
impl Unpin for Warning
impl UnsafeUnpin for Warning
impl UnwindSafe for Warning
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if
self is equivalent to key.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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