pub enum DecimalValueRef<'a> {
Show 14 variants
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),
}
Expand description
Any specialized Decimal
value reference.
Variants§
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)
Implementations§
Source§impl<'a> DecimalValueRef<'a>
impl<'a> DecimalValueRef<'a>
pub fn datatype(&self) -> DecimalDatatype
pub fn cloned(&self) -> DecimalValue
Trait Implementations§
Source§impl<'a> Clone for DecimalValueRef<'a>
impl<'a> Clone for DecimalValueRef<'a>
Source§fn clone(&self) -> DecimalValueRef<'a>
fn clone(&self) -> DecimalValueRef<'a>
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<'a> Debug for DecimalValueRef<'a>
impl<'a> Debug for DecimalValueRef<'a>
Source§impl<'a> Display for DecimalValueRef<'a>
impl<'a> Display for DecimalValueRef<'a>
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 DecimalValueRef<'a>
impl<'a> From<IntegerValueRef<'a>> for DecimalValueRef<'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<NonNegativeIntegerValueRef<'a>> for DecimalValueRef<'a>
impl<'a> From<NonNegativeIntegerValueRef<'a>> for DecimalValueRef<'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 DecimalValueRef<'a>
impl<'a> From<NonPositiveIntegerValueRef<'a>> for DecimalValueRef<'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> TryFrom<DecimalValueRef<'a>> for IntegerValueRef<'a>
impl<'a> TryFrom<DecimalValueRef<'a>> for IntegerValueRef<'a>
Source§type Error = DecimalValueRef<'a>
type Error = DecimalValueRef<'a>
The type returned in the event of a conversion error.
Source§fn try_from(value: DecimalValueRef<'a>) -> Result<Self, DecimalValueRef<'a>>
fn try_from(value: DecimalValueRef<'a>) -> Result<Self, DecimalValueRef<'a>>
Performs the conversion.
Source§impl<'a> TryFrom<DecimalValueRef<'a>> for NonNegativeIntegerValueRef<'a>
impl<'a> TryFrom<DecimalValueRef<'a>> for NonNegativeIntegerValueRef<'a>
Source§type Error = DecimalValueRef<'a>
type Error = DecimalValueRef<'a>
The type returned in the event of a conversion error.
Source§fn try_from(value: DecimalValueRef<'a>) -> Result<Self, DecimalValueRef<'a>>
fn try_from(value: DecimalValueRef<'a>) -> Result<Self, DecimalValueRef<'a>>
Performs the conversion.
Source§impl<'a> TryFrom<DecimalValueRef<'a>> for NonPositiveIntegerValueRef<'a>
impl<'a> TryFrom<DecimalValueRef<'a>> for NonPositiveIntegerValueRef<'a>
Source§type Error = DecimalValueRef<'a>
type Error = DecimalValueRef<'a>
The type returned in the event of a conversion error.
Source§fn try_from(value: DecimalValueRef<'a>) -> Result<Self, DecimalValueRef<'a>>
fn try_from(value: DecimalValueRef<'a>) -> Result<Self, DecimalValueRef<'a>>
Performs the conversion.
Source§impl<'a> TryFrom<ValueRef<'a>> for DecimalValueRef<'a>
impl<'a> TryFrom<ValueRef<'a>> for DecimalValueRef<'a>
Source§impl<'a> XsdValue for DecimalValueRef<'a>
impl<'a> XsdValue for DecimalValueRef<'a>
impl<'a> Copy for DecimalValueRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for DecimalValueRef<'a>
impl<'a> RefUnwindSafe for DecimalValueRef<'a>
impl<'a> !Send for DecimalValueRef<'a>
impl<'a> !Sync for DecimalValueRef<'a>
impl<'a> Unpin for DecimalValueRef<'a>
impl<'a> UnwindSafe for DecimalValueRef<'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