Enum rdf_types::LiteralType
source · pub enum LiteralType<I = IriBuf> {
Any(I),
LangString(LangTagBuf),
}Expand description
RDF literal type.
Variants§
Implementations§
source§impl<I> LiteralType<I>
impl<I> LiteralType<I>
pub fn is_lang_string(&self) -> bool
pub fn lang_tag(&self) -> Option<&LangTag>
pub fn is_xsd_string_with( &self, vocabulary: &impl IriVocabulary<Iri = I> ) -> bool
pub fn is_xsd_string(&self) -> boolwhere
I: IsXsdStringIri,
Trait Implementations§
source§impl<I: Clone> Clone for LiteralType<I>
impl<I: Clone> Clone for LiteralType<I>
source§fn clone(&self) -> LiteralType<I>
fn clone(&self) -> LiteralType<I>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<I: Debug> Debug for LiteralType<I>
impl<I: Debug> Debug for LiteralType<I>
source§impl<V, I: EmbedIntoVocabulary<V>> EmbedIntoVocabulary<V> for LiteralType<I>
impl<V, I: EmbedIntoVocabulary<V>> EmbedIntoVocabulary<V> for LiteralType<I>
§type Embedded = LiteralType<<I as EmbedIntoVocabulary<V>>::Embedded>
type Embedded = LiteralType<<I as EmbedIntoVocabulary<V>>::Embedded>
Type of the value once embedded into the vocabulary.
fn embed_into_vocabulary(self, vocabulary: &mut V) -> Self::Embedded
source§impl<V, I: EmbeddedIntoVocabulary<V>> EmbeddedIntoVocabulary<V> for LiteralType<I>
impl<V, I: EmbeddedIntoVocabulary<V>> EmbeddedIntoVocabulary<V> for LiteralType<I>
type Embedded = LiteralType<<I as EmbeddedIntoVocabulary<V>>::Embedded>
fn inserted_into_vocabulary(&self, vocabulary: &mut V) -> Self::Embedded
source§impl<V: IriVocabulary> ExtractFromVocabulary<V> for LiteralType<V::Iri>
impl<V: IriVocabulary> ExtractFromVocabulary<V> for LiteralType<V::Iri>
type Extracted = LiteralType
fn extract_from_vocabulary(self, vocabulary: &V) -> Self::Extracted
source§impl<V: IriVocabulary> ExtractedFromVocabulary<V> for LiteralType<V::Iri>
impl<V: IriVocabulary> ExtractedFromVocabulary<V> for LiteralType<V::Iri>
type Extracted = LiteralType
source§impl<I: Hash> Hash for LiteralType<I>
impl<I: Hash> Hash for LiteralType<I>
source§impl<I: Ord> Ord for LiteralType<I>
impl<I: Ord> Ord for LiteralType<I>
source§fn cmp(&self, other: &LiteralType<I>) -> Ordering
fn cmp(&self, other: &LiteralType<I>) -> Ordering
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> PartialEq for LiteralType<I>
impl<I: PartialEq> PartialEq for LiteralType<I>
source§fn eq(&self, other: &LiteralType<I>) -> bool
fn eq(&self, other: &LiteralType<I>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<I: PartialOrd> PartialOrd for LiteralType<I>
impl<I: PartialOrd> PartialOrd for LiteralType<I>
source§fn partial_cmp(&self, other: &LiteralType<I>) -> Option<Ordering>
fn partial_cmp(&self, other: &LiteralType<I>) -> Option<Ordering>
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<I: RdfDisplay> RdfDisplay for LiteralType<I>
impl<I: RdfDisplay> RdfDisplay for LiteralType<I>
fn rdf_fmt(&self, f: &mut Formatter<'_>) -> Result
fn rdf_display(&self) -> RdfDisplayed<&Self>
impl<I: Eq> Eq for LiteralType<I>
impl<I> StructuralPartialEq for LiteralType<I>
Auto Trait Implementations§
impl<I> RefUnwindSafe for LiteralType<I>where
I: RefUnwindSafe,
impl<I> Send for LiteralType<I>where
I: Send,
impl<I> Sync for LiteralType<I>where
I: Sync,
impl<I> Unpin for LiteralType<I>where
I: Unpin,
impl<I> UnwindSafe for LiteralType<I>where
I: 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 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.