pub enum TypedValueRef<'value> {
Show 13 variants
NamedNode(NamedNodeRef<'value>),
BlankNode(BlankNodeRef<'value>),
BooleanLiteral(Boolean),
NumericLiteral(Numeric),
SimpleLiteral(SimpleLiteralRef<'value>),
LanguageStringLiteral(LanguageStringRef<'value>),
DateTimeLiteral(DateTime),
TimeLiteral(Time),
DateLiteral(Date),
DurationLiteral(Duration),
YearMonthDurationLiteral(YearMonthDuration),
DayTimeDurationLiteral(DayTimeDuration),
OtherLiteral(LiteralRef<'value>),
}
Variants§
NamedNode(NamedNodeRef<'value>)
BlankNode(BlankNodeRef<'value>)
BooleanLiteral(Boolean)
NumericLiteral(Numeric)
SimpleLiteral(SimpleLiteralRef<'value>)
LanguageStringLiteral(LanguageStringRef<'value>)
DateTimeLiteral(DateTime)
TimeLiteral(Time)
DateLiteral(Date)
DurationLiteral(Duration)
YearMonthDurationLiteral(YearMonthDuration)
DayTimeDurationLiteral(DayTimeDuration)
OtherLiteral(LiteralRef<'value>)
Implementations§
Source§impl TypedValueRef<'_>
impl TypedValueRef<'_>
pub fn into_owned(self) -> TypedValue
Trait Implementations§
Source§impl<'value> Clone for TypedValueRef<'value>
impl<'value> Clone for TypedValueRef<'value>
Source§fn clone(&self) -> TypedValueRef<'value>
fn clone(&self) -> TypedValueRef<'value>
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<'value> Debug for TypedValueRef<'value>
impl<'value> Debug for TypedValueRef<'value>
Source§impl<'data> From<Boolean> for TypedValueRef<'data>
impl<'data> From<Boolean> for TypedValueRef<'data>
Source§fn from(value: Boolean) -> TypedValueRef<'data>
fn from(value: Boolean) -> TypedValueRef<'data>
Converts to this type from the input type.
Source§impl<'data> From<Date> for TypedValueRef<'data>
impl<'data> From<Date> for TypedValueRef<'data>
Source§fn from(value: Date) -> TypedValueRef<'data>
fn from(value: Date) -> TypedValueRef<'data>
Converts to this type from the input type.
Source§impl<'data> From<DateTime> for TypedValueRef<'data>
impl<'data> From<DateTime> for TypedValueRef<'data>
Source§fn from(value: DateTime) -> TypedValueRef<'data>
fn from(value: DateTime) -> TypedValueRef<'data>
Converts to this type from the input type.
Source§impl<'data> From<DayTimeDuration> for TypedValueRef<'data>
impl<'data> From<DayTimeDuration> for TypedValueRef<'data>
Source§fn from(value: DayTimeDuration) -> TypedValueRef<'data>
fn from(value: DayTimeDuration) -> TypedValueRef<'data>
Converts to this type from the input type.
Source§impl<'data> From<Duration> for TypedValueRef<'data>
impl<'data> From<Duration> for TypedValueRef<'data>
Source§fn from(value: Duration) -> TypedValueRef<'data>
fn from(value: Duration) -> TypedValueRef<'data>
Converts to this type from the input type.
Source§impl<'data> From<LanguageStringRef<'data>> for TypedValueRef<'data>
impl<'data> From<LanguageStringRef<'data>> for TypedValueRef<'data>
Source§fn from(value: LanguageStringRef<'data>) -> TypedValueRef<'data>
fn from(value: LanguageStringRef<'data>) -> TypedValueRef<'data>
Converts to this type from the input type.
Source§impl<'data> From<Numeric> for TypedValueRef<'data>
impl<'data> From<Numeric> for TypedValueRef<'data>
Source§fn from(value: Numeric) -> TypedValueRef<'data>
fn from(value: Numeric) -> TypedValueRef<'data>
Converts to this type from the input type.
Source§impl<'data> From<SimpleLiteralRef<'data>> for TypedValueRef<'data>
impl<'data> From<SimpleLiteralRef<'data>> for TypedValueRef<'data>
Source§fn from(value: SimpleLiteralRef<'data>) -> TypedValueRef<'data>
fn from(value: SimpleLiteralRef<'data>) -> TypedValueRef<'data>
Converts to this type from the input type.
Source§impl<'data> From<Time> for TypedValueRef<'data>
impl<'data> From<Time> for TypedValueRef<'data>
Source§fn from(value: Time) -> TypedValueRef<'data>
fn from(value: Time) -> TypedValueRef<'data>
Converts to this type from the input type.
Source§impl From<TypedValueRef<'_>> for Term
impl From<TypedValueRef<'_>> for Term
Source§fn from(value: TypedValueRef<'_>) -> Term
fn from(value: TypedValueRef<'_>) -> Term
Converts to this type from the input type.
Source§impl<'data> From<YearMonthDuration> for TypedValueRef<'data>
impl<'data> From<YearMonthDuration> for TypedValueRef<'data>
Source§fn from(value: YearMonthDuration) -> TypedValueRef<'data>
fn from(value: YearMonthDuration) -> TypedValueRef<'data>
Converts to this type from the input type.
Source§impl<'value> PartialEq for TypedValueRef<'value>
impl<'value> PartialEq for TypedValueRef<'value>
Source§impl PartialOrd for TypedValueRef<'_>
impl PartialOrd for TypedValueRef<'_>
Source§impl<'data> TryFrom<LiteralRef<'data>> for TypedValueRef<'data>
impl<'data> TryFrom<LiteralRef<'data>> for TypedValueRef<'data>
Source§type Error = TermToTypedValueError
type Error = TermToTypedValueError
The type returned in the event of a conversion error.
Source§fn try_from(
value: LiteralRef<'data>,
) -> Result<TypedValueRef<'data>, <TypedValueRef<'data> as TryFrom<LiteralRef<'data>>>::Error>
fn try_from( value: LiteralRef<'data>, ) -> Result<TypedValueRef<'data>, <TypedValueRef<'data> as TryFrom<LiteralRef<'data>>>::Error>
Performs the conversion.
Source§impl<'data> TryFrom<TermRef<'data>> for TypedValueRef<'data>
impl<'data> TryFrom<TermRef<'data>> for TypedValueRef<'data>
Source§type Error = TermToTypedValueError
type Error = TermToTypedValueError
The type returned in the event of a conversion error.
Source§fn try_from(
value: TermRef<'data>,
) -> Result<TypedValueRef<'data>, <TypedValueRef<'data> as TryFrom<TermRef<'data>>>::Error>
fn try_from( value: TermRef<'data>, ) -> Result<TypedValueRef<'data>, <TypedValueRef<'data> as TryFrom<TermRef<'data>>>::Error>
Performs the conversion.
Source§impl TryFrom<TypedValueRef<'_>> for Boolean
impl TryFrom<TypedValueRef<'_>> for Boolean
Source§impl TryFrom<TypedValueRef<'_>> for Integer
impl TryFrom<TypedValueRef<'_>> for Integer
Source§impl<'a> TryFrom<TypedValueRef<'a>> for SimpleLiteralRef<'a>
impl<'a> TryFrom<TypedValueRef<'a>> for SimpleLiteralRef<'a>
Source§fn try_from(
value: TypedValueRef<'a>,
) -> Result<SimpleLiteralRef<'a>, <SimpleLiteralRef<'a> as TryFrom<TypedValueRef<'a>>>::Error>
fn try_from( value: TypedValueRef<'a>, ) -> Result<SimpleLiteralRef<'a>, <SimpleLiteralRef<'a> as TryFrom<TypedValueRef<'a>>>::Error>
Performs the conversion.
Source§impl<'a> TryFrom<TypedValueRef<'a>> for StringLiteralRef<'a>
impl<'a> TryFrom<TypedValueRef<'a>> for StringLiteralRef<'a>
Source§fn try_from(
value: TypedValueRef<'a>,
) -> Result<StringLiteralRef<'a>, <StringLiteralRef<'a> as TryFrom<TypedValueRef<'a>>>::Error>
fn try_from( value: TypedValueRef<'a>, ) -> Result<StringLiteralRef<'a>, <StringLiteralRef<'a> as TryFrom<TypedValueRef<'a>>>::Error>
Performs the conversion.
impl<'value> Copy for TypedValueRef<'value>
impl<'value> StructuralPartialEq for TypedValueRef<'value>
Auto Trait Implementations§
impl<'value> Freeze for TypedValueRef<'value>
impl<'value> RefUnwindSafe for TypedValueRef<'value>
impl<'value> Send for TypedValueRef<'value>
impl<'value> Sync for TypedValueRef<'value>
impl<'value> Unpin for TypedValueRef<'value>
impl<'value> UnwindSafe for TypedValueRef<'value>
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<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