pub enum RdfLiteral<V: IriVocabulary> {
Any(String, LiteralType<V::Iri>),
Xsd(Value),
Json(Value),
}
Variants§
Implementations§
Source§impl<V: IriVocabulary> RdfLiteral<V>
impl<V: IriVocabulary> RdfLiteral<V>
pub fn into_lexical(self, vocabulary: &V) -> Literal
pub fn as_literal_ref(&self) -> RdfLiteralRef<'_, V>
Trait Implementations§
Source§impl<V: IriVocabulary> Debug for RdfLiteral<V>
impl<V: IriVocabulary> Debug for RdfLiteral<V>
Source§impl<V: IriVocabulary> Display for RdfLiteral<V>
impl<V: IriVocabulary> Display for RdfLiteral<V>
Source§impl<V: Vocabulary + IriVocabularyMut + LiteralVocabularyMut> EmbedIntoVocabulary<V> for RdfLiteral<V>
impl<V: Vocabulary + IriVocabularyMut + LiteralVocabularyMut> EmbedIntoVocabulary<V> for RdfLiteral<V>
Source§type Embedded = <V as LiteralVocabulary>::Literal
type Embedded = <V as LiteralVocabulary>::Literal
Type of the value once embedded into the vocabulary.
fn embed_into_vocabulary(self, vocabulary: &mut V) -> V::Literal
Auto Trait Implementations§
impl<V> !Freeze for RdfLiteral<V>
impl<V> RefUnwindSafe for RdfLiteral<V>
impl<V> Send for RdfLiteral<V>
impl<V> !Sync for RdfLiteral<V>
impl<V> Unpin for RdfLiteral<V>
impl<V> UnwindSafe for RdfLiteral<V>
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