pub enum Literal<S = String, I = IriBuf, L = LanguageTagBuf> {
String(S),
TypedString(S, I),
LangString(S, L),
}
Expand description
RDF Literal.
Variants§
String(S)
Untyped string literal.
TypedString(S, I)
Typed string literal.
LangString(S, L)
Language string.
Implementations§
source§impl<S, L> Literal<S, IriBuf, L>
impl<S, L> Literal<S, IriBuf, L>
pub fn inserted_into<V: IriVocabularyMut>( &self, vocabulary: &mut V ) -> Literal<S, V::Iri, L>where S: Clone, L: Clone,
pub fn insert_into<V: IriVocabularyMut>( self, vocabulary: &mut V ) -> Literal<S, V::Iri, L>
Trait Implementations§
source§impl<S: BorrowMut<str>, I, L> BorrowMut<str> for Literal<S, I, L>
impl<S: BorrowMut<str>, I, L> BorrowMut<str> for Literal<S, I, L>
source§fn borrow_mut(&mut self) -> &mut str
fn borrow_mut(&mut self) -> &mut str
Mutably borrows from an owned value. Read more
source§impl<S: RdfDisplay, I: RdfDisplay, L: Display> Display for Literal<S, I, L>
impl<S: RdfDisplay, I: RdfDisplay, L: Display> Display for Literal<S, I, L>
source§impl<S: Ord, I: Ord, L: Ord> Ord for Literal<S, I, L>
impl<S: Ord, I: Ord, L: Ord> Ord for Literal<S, 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<S: PartialEq, I: PartialEq, L: PartialEq> PartialEq<Literal<S, I, L>> for Literal<S, I, L>
impl<S: PartialEq, I: PartialEq, L: PartialEq> PartialEq<Literal<S, I, L>> for Literal<S, I, L>
source§impl<S: PartialOrd, I: PartialOrd, L: PartialOrd> PartialOrd<Literal<S, I, L>> for Literal<S, I, L>
impl<S: PartialOrd, I: PartialOrd, L: PartialOrd> PartialOrd<Literal<S, I, L>> for Literal<S, 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 more