pub enum Type<I = IriBuf, L = LanguageTagBuf> {
Any(I),
LangString(L),
}
Expand description
RDF Literal type.
Variants§
Implementations§
Trait Implementations§
source§impl<V, I: InsertIntoVocabulary<V>, L: InsertIntoVocabulary<V>> InsertIntoVocabulary<V> for Type<I, L>
impl<V, I: InsertIntoVocabulary<V>, L: InsertIntoVocabulary<V>> InsertIntoVocabulary<V> for Type<I, L>
type Inserted = Type<<I as InsertIntoVocabulary<V>>::Inserted, <L as InsertIntoVocabulary<V>>::Inserted>
fn insert_into_vocabulary(self, vocabulary: &mut V) -> Self::Inserted
source§impl<I: Ord, L: Ord> Ord for Type<I, L>
impl<I: Ord, L: Ord> Ord for Type<I, L>
1.21.0 · 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
source§impl<I: PartialEq, L: PartialEq> PartialEq<Type<I, L>> for Type<I, L>
impl<I: PartialEq, L: PartialEq> PartialEq<Type<I, L>> for Type<I, L>
source§impl<I: PartialOrd, L: PartialOrd> PartialOrd<Type<I, L>> for Type<I, L>
impl<I: PartialOrd, L: PartialOrd> PartialOrd<Type<I, L>> for Type<I, L>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<T: RdfDisplay, L: RdfDisplay> RdfDisplay for Type<T, L>
impl<T: RdfDisplay, L: RdfDisplay> RdfDisplay for Type<T, L>
fn rdf_fmt(&self, f: &mut Formatter<'_>) -> Result
fn rdf_display(&self) -> RdfDisplayed<&Self>
source§impl<T, L> RdfDisplayTypeSeparator for Type<T, L>
impl<T, L> RdfDisplayTypeSeparator for Type<T, L>
fn rdf_fmt_type_separator(&self, f: &mut Formatter<'_>) -> Result
source§impl<V: IriVocabulary + LanguageTagVocabulary> TryExportLiteralType<V> for Type<V::Iri, V::LanguageTag>
impl<V: IriVocabulary + LanguageTagVocabulary> TryExportLiteralType<V> for Type<V::Iri, V::LanguageTag>
type Error = ExportError<<V as IriVocabulary>::Iri, <V as LanguageTagVocabulary>::LanguageTag>
fn try_export_literal_type(self, vocabulary: &V) -> Result<Type, Self::Error>
impl<I: Eq, L: Eq> Eq for Type<I, L>
impl<I, L> StructuralEq for Type<I, L>
impl<I, L> StructuralPartialEq for Type<I, L>
Auto Trait Implementations§
impl<I, L> RefUnwindSafe for Type<I, L>where I: RefUnwindSafe, L: RefUnwindSafe,
impl<I, L> Send for Type<I, L>where I: Send, L: Send,
impl<I, L> Sync for Type<I, L>where I: Sync, L: Sync,
impl<I, L> Unpin for Type<I, L>where I: Unpin, L: Unpin,
impl<I, L> UnwindSafe for Type<I, L>where I: UnwindSafe, L: 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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.