pub enum ValidId<I = IriBuf, B = BlankIdBuf> {
Iri(I),
Blank(B),
}Expand description
Valid node identifier (IRI or blank node).
Variants§
Implementations§
Trait Implementations§
Source§impl<V: IriVocabulary + BlankIdVocabulary> DisplayWithContext<V> for ValidId<V::Iri, V::BlankId>
impl<V: IriVocabulary + BlankIdVocabulary> DisplayWithContext<V> for ValidId<V::Iri, V::BlankId>
impl<I: Eq, B: Eq> Eq for ValidId<I, B>
Source§impl<I: PartialEq, B: PartialEq> Equivalent<Id<I, B>> for ValidId<I, B>
impl<I: PartialEq, B: PartialEq> Equivalent<Id<I, B>> for ValidId<I, B>
Source§fn equivalent(&self, key: &Id<I, B>) -> bool
fn equivalent(&self, key: &Id<I, B>) -> bool
Compare self to
key and return true if they are equal.Source§impl<I: Interpretation, T, B> LinkedDataResource<I> for ValidId<T, B>where
T: LinkedDataResource<I>,
B: LinkedDataResource<I>,
impl<I: Interpretation, T, B> LinkedDataResource<I> for ValidId<T, B>where
T: LinkedDataResource<I>,
B: LinkedDataResource<I>,
Source§fn interpretation(
&self,
interpretation: &mut I,
) -> ResourceInterpretation<'_, I>
fn interpretation( &self, interpretation: &mut I, ) -> ResourceInterpretation<'_, I>
Returns the interpretation of this resource, inserting it into
interpretation if required.Source§fn lexical_representation<'a>(
&'a self,
interpretation: &'a mut I,
) -> Option<CowRdfTerm<'a>>where
I: ReverseInterpretation + ReverseLocalInterpretation,
fn lexical_representation<'a>(
&'a self,
interpretation: &'a mut I,
) -> Option<CowRdfTerm<'a>>where
I: ReverseInterpretation + ReverseLocalInterpretation,
Returns the lexical term representing this resource, if any.
Source§fn reference_interpretation(
&self,
interpretation: &mut I,
) -> ResourceInterpretation<'_, I>
fn reference_interpretation( &self, interpretation: &mut I, ) -> ResourceInterpretation<'_, I>
Returns the interpretation to use when this resource appears as a
reference rather than as a subject with properties.
Source§impl<I: Interpretation, T, B> LinkedDataSubject<I> for ValidId<T, B>where
T: LinkedDataSubject<I>,
B: LinkedDataSubject<I>,
impl<I: Interpretation, T, B> LinkedDataSubject<I> for ValidId<T, B>where
T: LinkedDataSubject<I>,
B: LinkedDataSubject<I>,
Source§fn visit_subject<S>(&self, visitor: S) -> Result<S::Ok, S::Error>where
S: SubjectVisitor<I>,
fn visit_subject<S>(&self, visitor: S) -> Result<S::Ok, S::Error>where
S: SubjectVisitor<I>,
Visits the properties of the subject represented by this value.
Source§impl<I: Ord, B: Ord> Ord for ValidId<I, B>
impl<I: Ord, B: Ord> Ord for ValidId<I, B>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<I: PartialOrd, B: PartialOrd> PartialOrd for ValidId<I, B>
impl<I: PartialOrd, B: PartialOrd> PartialOrd for ValidId<I, B>
impl<I: PartialEq, B: PartialEq> StructuralPartialEq for ValidId<I, B>
Auto Trait Implementations§
impl<I, B> Freeze for ValidId<I, B>
impl<I, B> RefUnwindSafe for ValidId<I, B>where
I: RefUnwindSafe,
B: RefUnwindSafe,
impl<I, B> Send for ValidId<I, B>
impl<I, B> Sync for ValidId<I, B>
impl<I, B> Unpin for ValidId<I, B>
impl<I, B> UnsafeUnpin for ValidId<I, B>where
I: UnsafeUnpin,
B: UnsafeUnpin,
impl<I, B> UnwindSafe for ValidId<I, B>where
I: UnwindSafe,
B: UnwindSafe,
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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>,
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
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