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<I> LiteralTypeRef<'_, I>where
I: ToOwned,
impl<I> LiteralTypeRef<'_, I>where
I: ToOwned,
pub fn into_owned(self) -> LiteralType<<I as ToOwned>::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 LiteralTypeRef<'_>
impl LiteralTypeRef<'_>
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§fn clone(&self) -> LiteralTypeRef<'a, I>
fn clone(&self) -> LiteralTypeRef<'a, I>
Returns a duplicate 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<'a, I> Debug for LiteralTypeRef<'a, I>where
I: Debug,
impl<'a, I> Debug for LiteralTypeRef<'a, I>where
I: Debug,
Source§impl<V, I> EmbedIntoVocabulary<V> for LiteralTypeRef<'_, I>where
I: EmbeddedIntoVocabulary<V>,
impl<V, I> EmbedIntoVocabulary<V> for LiteralTypeRef<'_, I>where
I: EmbeddedIntoVocabulary<V>,
Source§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, ) -> <LiteralTypeRef<'_, I> as EmbedIntoVocabulary<V>>::Embedded
Source§impl<V, I> EmbeddedIntoVocabulary<V> for LiteralTypeRef<'_, I>where
I: EmbeddedIntoVocabulary<V>,
impl<V, I> EmbeddedIntoVocabulary<V> for LiteralTypeRef<'_, I>where
I: EmbeddedIntoVocabulary<V>,
type Embedded = LiteralType<<I as EmbeddedIntoVocabulary<V>>::Embedded>
fn embedded_into_vocabulary( &self, vocabulary: &mut V, ) -> <LiteralTypeRef<'_, I> as EmbeddedIntoVocabulary<V>>::Embedded
Source§impl<V> ExtractFromVocabulary<V> for LiteralTypeRef<'_, <V as IriVocabulary>::Iri>where
V: IriVocabulary,
impl<V> ExtractFromVocabulary<V> for LiteralTypeRef<'_, <V as IriVocabulary>::Iri>where
V: IriVocabulary,
type Extracted = LiteralType
fn extract_from_vocabulary( self, vocabulary: &V, ) -> <LiteralTypeRef<'_, <V as IriVocabulary>::Iri> as ExtractFromVocabulary<V>>::Extracted
Source§impl<V> ExtractedFromVocabulary<V> for LiteralTypeRef<'_, <V as IriVocabulary>::Iri>where
V: IriVocabulary,
impl<V> ExtractedFromVocabulary<V> for LiteralTypeRef<'_, <V as IriVocabulary>::Iri>where
V: IriVocabulary,
type Extracted = LiteralType
Source§fn extracted_from_vocabulary(
&self,
vocabulary: &V,
) -> <LiteralTypeRef<'_, <V as IriVocabulary>::Iri> as ExtractedFromVocabulary<V>>::Extracted
fn extracted_from_vocabulary( &self, vocabulary: &V, ) -> <LiteralTypeRef<'_, <V as IriVocabulary>::Iri> as ExtractedFromVocabulary<V>>::Extracted
Exports a value embedded into the vocabulary
V. Read moreSource§impl<'a, I> Hash for LiteralTypeRef<'a, I>where
I: Hash,
impl<'a, I> Hash for LiteralTypeRef<'a, I>where
I: Hash,
Source§impl<'a, I> Ord for LiteralTypeRef<'a, I>where
I: Ord,
impl<'a, I> Ord for LiteralTypeRef<'a, I>where
I: Ord,
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<I> PartialEq<LiteralType<I>> for LiteralTypeRef<'_, I>where
I: PartialEq,
impl<I> PartialEq<LiteralType<I>> for LiteralTypeRef<'_, I>where
I: PartialEq,
Source§impl<'a, I> PartialEq<LiteralTypeRef<'a, I>> for LiteralType<I>where
I: PartialEq,
impl<'a, I> PartialEq<LiteralTypeRef<'a, I>> for LiteralType<I>where
I: PartialEq,
Source§impl<'a, I> PartialEq for LiteralTypeRef<'a, I>where
I: PartialEq,
impl<'a, I> PartialEq for LiteralTypeRef<'a, I>where
I: PartialEq,
Source§impl<'a, I> PartialOrd for LiteralTypeRef<'a, I>where
I: PartialOrd,
impl<'a, I> PartialOrd for LiteralTypeRef<'a, I>where
I: PartialOrd,
Source§impl<I> RdfDisplay for LiteralTypeRef<'_, I>where
I: RdfDisplay,
impl<I> RdfDisplay for LiteralTypeRef<'_, I>where
I: RdfDisplay,
Source§impl<'a, T, V> RdfDisplayWithContext<V> for LiteralTypeRef<'a, T>where
T: RdfDisplayWithContext<V>,
Available on crate feature contextual only.
impl<'a, T, V> RdfDisplayWithContext<V> for LiteralTypeRef<'a, T>where
T: RdfDisplayWithContext<V>,
Available on crate feature
contextual only.impl<'a, I> Copy for LiteralTypeRef<'a, I>
impl<'a, I> Eq for LiteralTypeRef<'a, I>where
I: Eq,
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<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
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§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.