Enum rdf_types::LiteralTypeRef
source · pub enum LiteralTypeRef<'a, I = IriBuf> {
Any(&'a I),
LangString(&'a LangTag),
}
Expand description
RDF literal type reference.
Variants§
Implementations§
source§impl<'a, I> LiteralTypeRef<'a, I>
impl<'a, I> LiteralTypeRef<'a, I>
pub fn is_lang_string(&self) -> bool
pub fn lang_tag(&self) -> Option<&'a LangTag>
pub fn is_xsd_string_with( &self, vocabulary: &impl IriVocabulary<Iri = I> ) -> bool
pub fn is_xsd_string(&self) -> boolwhere
I: IsXsdStringIri,
pub fn is_iri(&self, iri: &I) -> boolwhere
I: PartialEq,
pub fn as_lexical_type_ref_with( &self, vocabulary: &'a impl IriVocabulary<Iri = I> ) -> LexicalLiteralTypeRef<'a>
source§impl<'a, I: ToOwned> LiteralTypeRef<'a, I>
impl<'a, I: ToOwned> LiteralTypeRef<'a, I>
pub fn into_owned(self) -> LiteralType<I::Owned>
source§impl<'a, I> LiteralTypeRef<'a, I>
impl<'a, I> LiteralTypeRef<'a, I>
pub fn cast_into_owned<J>(self) -> LiteralType<J>
source§impl<'a> LiteralTypeRef<'a>
impl<'a> LiteralTypeRef<'a>
pub fn as_lexical_type_ref(&self) -> LexicalLiteralTypeRef<'_>
Trait Implementations§
source§impl<'a, I> Clone for LiteralTypeRef<'a, I>
impl<'a, I> Clone for LiteralTypeRef<'a, I>
source§impl<'a, I: Debug> Debug for LiteralTypeRef<'a, I>
impl<'a, I: Debug> Debug for LiteralTypeRef<'a, I>
source§impl<'a, V, I: EmbeddedIntoVocabulary<V>> EmbedIntoVocabulary<V> for LiteralTypeRef<'a, I>
impl<'a, V, I: EmbeddedIntoVocabulary<V>> EmbedIntoVocabulary<V> for LiteralTypeRef<'a, I>
§type Embedded = LiteralType<<I as EmbeddedIntoVocabulary<V>>::Embedded>
type Embedded = LiteralType<<I as EmbeddedIntoVocabulary<V>>::Embedded>
Type of the value once embedded into the vocabulary.
fn embed_into_vocabulary(self, vocabulary: &mut V) -> Self::Embedded
source§impl<'a, V, I: EmbeddedIntoVocabulary<V>> EmbeddedIntoVocabulary<V> for LiteralTypeRef<'a, I>
impl<'a, V, I: EmbeddedIntoVocabulary<V>> EmbeddedIntoVocabulary<V> for LiteralTypeRef<'a, I>
type Embedded = LiteralType<<I as EmbeddedIntoVocabulary<V>>::Embedded>
fn embedded_into_vocabulary(&self, vocabulary: &mut V) -> Self::Embedded
source§impl<'a, V: IriVocabulary> ExtractFromVocabulary<V> for LiteralTypeRef<'a, V::Iri>
impl<'a, V: IriVocabulary> ExtractFromVocabulary<V> for LiteralTypeRef<'a, V::Iri>
type Extracted = LiteralType
fn extract_from_vocabulary(self, vocabulary: &V) -> Self::Extracted
source§impl<'a, V: IriVocabulary> ExtractedFromVocabulary<V> for LiteralTypeRef<'a, V::Iri>
impl<'a, V: IriVocabulary> ExtractedFromVocabulary<V> for LiteralTypeRef<'a, V::Iri>
type Extracted = LiteralType
source§impl<'a, I: Hash> Hash for LiteralTypeRef<'a, I>
impl<'a, I: Hash> Hash for LiteralTypeRef<'a, I>
source§impl<'a, I: Ord> Ord for LiteralTypeRef<'a, I>
impl<'a, I: Ord> Ord for LiteralTypeRef<'a, I>
source§fn cmp(&self, other: &LiteralTypeRef<'a, I>) -> Ordering
fn cmp(&self, other: &LiteralTypeRef<'a, 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<'a, I: PartialEq> PartialEq<LiteralType<I>> for LiteralTypeRef<'a, I>
impl<'a, I: PartialEq> PartialEq<LiteralType<I>> for LiteralTypeRef<'a, 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<'a, I: PartialEq> PartialEq<LiteralTypeRef<'a, I>> for LiteralType<I>
impl<'a, I: PartialEq> PartialEq<LiteralTypeRef<'a, I>> for LiteralType<I>
source§fn eq(&self, other: &LiteralTypeRef<'a, I>) -> bool
fn eq(&self, other: &LiteralTypeRef<'a, I>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, I: PartialEq> PartialEq for LiteralTypeRef<'a, I>
impl<'a, I: PartialEq> PartialEq for LiteralTypeRef<'a, I>
source§fn eq(&self, other: &LiteralTypeRef<'a, I>) -> bool
fn eq(&self, other: &LiteralTypeRef<'a, I>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, I: PartialOrd> PartialOrd for LiteralTypeRef<'a, I>
impl<'a, I: PartialOrd> PartialOrd for LiteralTypeRef<'a, I>
source§fn partial_cmp(&self, other: &LiteralTypeRef<'a, I>) -> Option<Ordering>
fn partial_cmp(&self, other: &LiteralTypeRef<'a, 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<'a, I: RdfDisplay> RdfDisplay for LiteralTypeRef<'a, I>
impl<'a, I: RdfDisplay> RdfDisplay for LiteralTypeRef<'a, I>
source§fn rdf_fmt(&self, f: &mut Formatter<'_>) -> Result
fn rdf_fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter.
source§fn rdf_display(&self) -> RdfDisplayed<&Self>
fn rdf_display(&self) -> RdfDisplayed<&Self>
Prepare the value to be formatted as an RDF syntax element.
impl<'a, I> Copy for LiteralTypeRef<'a, I>
impl<'a, I: Eq> Eq for LiteralTypeRef<'a, I>
impl<'a, I> StructuralPartialEq for LiteralTypeRef<'a, I>
Auto Trait Implementations§
impl<'a, I> Freeze for LiteralTypeRef<'a, I>
impl<'a, I> RefUnwindSafe for LiteralTypeRef<'a, I>where
I: RefUnwindSafe,
impl<'a, I> Send for LiteralTypeRef<'a, I>where
I: Sync,
impl<'a, I> Sync for LiteralTypeRef<'a, I>where
I: Sync,
impl<'a, I> Unpin for LiteralTypeRef<'a, I>
impl<'a, I> UnwindSafe for LiteralTypeRef<'a, I>where
I: RefUnwindSafe,
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> 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§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.