pub enum TypedValue {
Show 13 variants
NamedNode(NamedNode),
BlankNode(BlankNode),
BooleanLiteral(Boolean),
NumericLiteral(Numeric),
SimpleLiteral(SimpleLiteral),
LanguageStringLiteral(LanguageString),
DateTimeLiteral(DateTime),
TimeLiteral(Time),
DateLiteral(Date),
DurationLiteral(Duration),
YearMonthDurationLiteral(YearMonthDuration),
DayTimeDurationLiteral(DayTimeDuration),
OtherLiteral(Literal),
}Variants§
NamedNode(NamedNode)
BlankNode(BlankNode)
BooleanLiteral(Boolean)
NumericLiteral(Numeric)
SimpleLiteral(SimpleLiteral)
LanguageStringLiteral(LanguageString)
A string literal with a language tag.
§Additional Resources
DateTimeLiteral(DateTime)
TimeLiteral(Time)
DateLiteral(Date)
DurationLiteral(Duration)
YearMonthDurationLiteral(YearMonthDuration)
A year-month duration literal with datatype xsd:yearMonthDuration.
§Additional Resources
DayTimeDurationLiteral(DayTimeDuration)
A day-time duration literal with datatype xsd:dayTimeDuration.
§Additional Resources
OtherLiteral(Literal)
A literal with a datatype not specifically handled by other variants.
§Additional Resources
Implementations§
Source§impl TypedValue
impl TypedValue
pub fn as_ref(&self) -> TypedValueRef<'_>
Trait Implementations§
Source§impl Clone for TypedValue
impl Clone for TypedValue
Source§fn clone(&self) -> TypedValue
fn clone(&self) -> TypedValue
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 Debug for TypedValue
impl Debug for TypedValue
Source§impl Hash for TypedValue
impl Hash for TypedValue
Source§impl PartialEq for TypedValue
impl PartialEq for TypedValue
impl Eq for TypedValue
impl StructuralPartialEq for TypedValue
Auto Trait Implementations§
impl Freeze for TypedValue
impl RefUnwindSafe for TypedValue
impl Send for TypedValue
impl Sync for TypedValue
impl Unpin for TypedValue
impl UnwindSafe for TypedValue
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more