pub enum Literal<S = StringLiteral, 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
Trait Implementations
sourceimpl<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>
sourcefn borrow_mut(&mut self) -> &mut str
fn borrow_mut(&mut self) -> &mut str
Mutably borrows from an owned value. Read more
sourceimpl<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 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<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>
sourceimpl<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>
sourcefn partial_cmp(&self, other: &Literal<S, I, L>) -> Option<Ordering>
fn partial_cmp(&self, other: &Literal<S, I, L>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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
impl<S: Eq, I: Eq, L: Eq> Eq for Literal<S, I, L>
impl<S, I, L> StructuralEq for Literal<S, I, L>
impl<S, I, L> StructuralPartialEq for Literal<S, I, L>
Auto Trait Implementations
impl<S, I, L> RefUnwindSafe for Literal<S, I, L> where
I: RefUnwindSafe,
L: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, I, L> Send for Literal<S, I, L> where
I: Send,
L: Send,
S: Send,
impl<S, I, L> Sync for Literal<S, I, L> where
I: Sync,
L: Sync,
S: Sync,
impl<S, I, L> Unpin for Literal<S, I, L> where
I: Unpin,
L: Unpin,
S: Unpin,
impl<S, I, L> UnwindSafe for Literal<S, I, L> where
I: UnwindSafe,
L: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more