pub enum ValueRef<'a> {
Show 42 variants
Boolean(Boolean),
Float(Float),
Double(Double),
Decimal(&'a Decimal),
Integer(&'a Integer),
NonPositiveInteger(&'a NonPositiveInteger),
NegativeInteger(&'a NegativeInteger),
NonNegativeInteger(&'a NonNegativeInteger),
PositiveInteger(&'a PositiveInteger),
UnsignedLong(UnsignedLong),
UnsignedInt(UnsignedInt),
UnsignedShort(UnsignedShort),
UnsignedByte(UnsignedByte),
Long(Long),
Int(Int),
Short(Short),
Byte(Byte),
String(&'a str),
NormalizedString(&'a NormalizedStr),
Token(&'a Token),
Language(&'a Language),
Name(&'a Name),
NCName(&'a NCName),
Id(&'a Id),
IdRef(&'a IdRef),
NMToken(&'a NMToken),
Duration(Duration),
DayTimeDuration(DayTimeDuration),
YearMonthDuration(YearMonthDuration),
DateTime(DateTime),
DateTimeStamp(DateTimeStamp),
Time(Time),
Date(Date),
GYearMonth(GYearMonth),
GYear(GYear),
GMonthDay(GMonthDay),
GDay(GDay),
GMonth(GMonth),
Base64Binary(&'a Base64Binary),
HexBinary(&'a HexBinary),
AnyUri(&'a AnyUri),
QName(&'a QName),
}
Expand description
Any XSD value reference.
Variants§
Boolean(Boolean)
Float(Float)
Double(Double)
Decimal(&'a Decimal)
Integer(&'a Integer)
NonPositiveInteger(&'a NonPositiveInteger)
NegativeInteger(&'a NegativeInteger)
NonNegativeInteger(&'a NonNegativeInteger)
PositiveInteger(&'a PositiveInteger)
UnsignedLong(UnsignedLong)
UnsignedInt(UnsignedInt)
UnsignedShort(UnsignedShort)
UnsignedByte(UnsignedByte)
Long(Long)
Int(Int)
Short(Short)
Byte(Byte)
String(&'a str)
NormalizedString(&'a NormalizedStr)
Token(&'a Token)
Language(&'a Language)
Name(&'a Name)
NCName(&'a NCName)
Id(&'a Id)
IdRef(&'a IdRef)
NMToken(&'a NMToken)
Duration(Duration)
DayTimeDuration(DayTimeDuration)
YearMonthDuration(YearMonthDuration)
DateTime(DateTime)
DateTimeStamp(DateTimeStamp)
Time(Time)
Date(Date)
GYearMonth(GYearMonth)
GYear(GYear)
GMonthDay(GMonthDay)
GDay(GDay)
GMonth(GMonth)
Base64Binary(&'a Base64Binary)
HexBinary(&'a HexBinary)
AnyUri(&'a AnyUri)
QName(&'a QName)
Implementations§
Trait Implementations§
Source§impl<'a> From<DecimalValueRef<'a>> for ValueRef<'a>
impl<'a> From<DecimalValueRef<'a>> for ValueRef<'a>
Source§fn from(value: DecimalValueRef<'a>) -> Self
fn from(value: DecimalValueRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<IntegerValueRef<'a>> for ValueRef<'a>
impl<'a> From<IntegerValueRef<'a>> for ValueRef<'a>
Source§fn from(value: IntegerValueRef<'a>) -> Self
fn from(value: IntegerValueRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<NCNameValueRef<'a>> for ValueRef<'a>
impl<'a> From<NCNameValueRef<'a>> for ValueRef<'a>
Source§fn from(value: NCNameValueRef<'a>) -> Self
fn from(value: NCNameValueRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<NameValueRef<'a>> for ValueRef<'a>
impl<'a> From<NameValueRef<'a>> for ValueRef<'a>
Source§fn from(value: NameValueRef<'a>) -> Self
fn from(value: NameValueRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<NonNegativeIntegerValueRef<'a>> for ValueRef<'a>
impl<'a> From<NonNegativeIntegerValueRef<'a>> for ValueRef<'a>
Source§fn from(value: NonNegativeIntegerValueRef<'a>) -> Self
fn from(value: NonNegativeIntegerValueRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<NonPositiveIntegerValueRef<'a>> for ValueRef<'a>
impl<'a> From<NonPositiveIntegerValueRef<'a>> for ValueRef<'a>
Source§fn from(value: NonPositiveIntegerValueRef<'a>) -> Self
fn from(value: NonPositiveIntegerValueRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<NormalizedStringValueRef<'a>> for ValueRef<'a>
impl<'a> From<NormalizedStringValueRef<'a>> for ValueRef<'a>
Source§fn from(value: NormalizedStringValueRef<'a>) -> Self
fn from(value: NormalizedStringValueRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<StringValueRef<'a>> for ValueRef<'a>
impl<'a> From<StringValueRef<'a>> for ValueRef<'a>
Source§fn from(value: StringValueRef<'a>) -> Self
fn from(value: StringValueRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TokenValueRef<'a>> for ValueRef<'a>
impl<'a> From<TokenValueRef<'a>> for ValueRef<'a>
Source§fn from(value: TokenValueRef<'a>) -> Self
fn from(value: TokenValueRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> TryFrom<ValueRef<'a>> for DecimalValueRef<'a>
impl<'a> TryFrom<ValueRef<'a>> for DecimalValueRef<'a>
Source§impl<'a> TryFrom<ValueRef<'a>> for IntegerValueRef<'a>
impl<'a> TryFrom<ValueRef<'a>> for IntegerValueRef<'a>
Source§impl<'a> TryFrom<ValueRef<'a>> for NCNameValueRef<'a>
impl<'a> TryFrom<ValueRef<'a>> for NCNameValueRef<'a>
Source§impl<'a> TryFrom<ValueRef<'a>> for NameValueRef<'a>
impl<'a> TryFrom<ValueRef<'a>> for NameValueRef<'a>
Source§impl<'a> TryFrom<ValueRef<'a>> for NonNegativeIntegerValueRef<'a>
impl<'a> TryFrom<ValueRef<'a>> for NonNegativeIntegerValueRef<'a>
Source§impl<'a> TryFrom<ValueRef<'a>> for NonPositiveIntegerValueRef<'a>
impl<'a> TryFrom<ValueRef<'a>> for NonPositiveIntegerValueRef<'a>
Source§impl<'a> TryFrom<ValueRef<'a>> for NormalizedStringValueRef<'a>
impl<'a> TryFrom<ValueRef<'a>> for NormalizedStringValueRef<'a>
Source§impl<'a> TryFrom<ValueRef<'a>> for StringValueRef<'a>
impl<'a> TryFrom<ValueRef<'a>> for StringValueRef<'a>
Source§impl<'a> TryFrom<ValueRef<'a>> for TokenValueRef<'a>
impl<'a> TryFrom<ValueRef<'a>> for TokenValueRef<'a>
impl<'a> Copy for ValueRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ValueRef<'a>
impl<'a> RefUnwindSafe for ValueRef<'a>
impl<'a> !Send for ValueRef<'a>
impl<'a> !Sync for ValueRef<'a>
impl<'a> Unpin for ValueRef<'a>
impl<'a> UnwindSafe for ValueRef<'a>
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