pub enum DecimalValue {
Show 14 variants
Decimal(Decimal),
Integer(Integer),
NonPositiveInteger(NonPositiveInteger),
NegativeInteger(NegativeInteger),
NonNegativeInteger(NonNegativeInteger),
PositiveInteger(PositiveInteger),
UnsignedLong(UnsignedLong),
UnsignedInt(UnsignedInt),
UnsignedShort(UnsignedShort),
UnsignedByte(UnsignedByte),
Long(Long),
Int(Int),
Short(Short),
Byte(Byte),
}Expand description
Any specialized Decimal value.
Variants§
Decimal(Decimal)
Integer(Integer)
NonPositiveInteger(NonPositiveInteger)
NegativeInteger(NegativeInteger)
NonNegativeInteger(NonNegativeInteger)
PositiveInteger(PositiveInteger)
UnsignedLong(UnsignedLong)
UnsignedInt(UnsignedInt)
UnsignedShort(UnsignedShort)
UnsignedByte(UnsignedByte)
Long(Long)
Int(Int)
Short(Short)
Byte(Byte)
Implementations§
Source§impl DecimalValue
impl DecimalValue
pub fn datatype(&self) -> DecimalDatatype
Source§impl DecimalValue
impl DecimalValue
pub fn as_ref(&self) -> DecimalValueRef<'_>
Trait Implementations§
Source§impl Clone for DecimalValue
impl Clone for DecimalValue
Source§fn clone(&self) -> DecimalValue
fn clone(&self) -> DecimalValue
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 DecimalValue
impl Debug for DecimalValue
Source§impl Display for DecimalValue
impl Display for DecimalValue
Source§impl From<DecimalValue> for Value
impl From<DecimalValue> for Value
Source§fn from(value: DecimalValue) -> Self
fn from(value: DecimalValue) -> Self
Converts to this type from the input type.
Source§impl From<IntValue> for DecimalValue
impl From<IntValue> for DecimalValue
Source§impl From<IntegerValue> for DecimalValue
impl From<IntegerValue> for DecimalValue
Source§fn from(value: IntegerValue) -> Self
fn from(value: IntegerValue) -> Self
Converts to this type from the input type.
Source§impl From<LongValue> for DecimalValue
impl From<LongValue> for DecimalValue
Source§impl From<NonNegativeIntegerValue> for DecimalValue
impl From<NonNegativeIntegerValue> for DecimalValue
Source§fn from(value: NonNegativeIntegerValue) -> Self
fn from(value: NonNegativeIntegerValue) -> Self
Converts to this type from the input type.
Source§impl From<NonPositiveIntegerValue> for DecimalValue
impl From<NonPositiveIntegerValue> for DecimalValue
Source§fn from(value: NonPositiveIntegerValue) -> Self
fn from(value: NonPositiveIntegerValue) -> Self
Converts to this type from the input type.
Source§impl From<ShortValue> for DecimalValue
impl From<ShortValue> for DecimalValue
Source§fn from(value: ShortValue) -> Self
fn from(value: ShortValue) -> Self
Converts to this type from the input type.
Source§impl From<UnsignedIntValue> for DecimalValue
impl From<UnsignedIntValue> for DecimalValue
Source§fn from(value: UnsignedIntValue) -> Self
fn from(value: UnsignedIntValue) -> Self
Converts to this type from the input type.
Source§impl From<UnsignedLongValue> for DecimalValue
impl From<UnsignedLongValue> for DecimalValue
Source§fn from(value: UnsignedLongValue) -> Self
fn from(value: UnsignedLongValue) -> Self
Converts to this type from the input type.
Source§impl From<UnsignedShortValue> for DecimalValue
impl From<UnsignedShortValue> for DecimalValue
Source§fn from(value: UnsignedShortValue) -> Self
fn from(value: UnsignedShortValue) -> Self
Converts to this type from the input type.
Source§impl TryFrom<DecimalValue> for IntValue
impl TryFrom<DecimalValue> for IntValue
Source§type Error = DecimalValue
type Error = DecimalValue
The type returned in the event of a conversion error.
Source§fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
Performs the conversion.
Source§impl TryFrom<DecimalValue> for IntegerValue
impl TryFrom<DecimalValue> for IntegerValue
Source§type Error = DecimalValue
type Error = DecimalValue
The type returned in the event of a conversion error.
Source§fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
Performs the conversion.
Source§impl TryFrom<DecimalValue> for LongValue
impl TryFrom<DecimalValue> for LongValue
Source§type Error = DecimalValue
type Error = DecimalValue
The type returned in the event of a conversion error.
Source§fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
Performs the conversion.
Source§impl TryFrom<DecimalValue> for NonNegativeIntegerValue
impl TryFrom<DecimalValue> for NonNegativeIntegerValue
Source§type Error = DecimalValue
type Error = DecimalValue
The type returned in the event of a conversion error.
Source§fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
Performs the conversion.
Source§impl TryFrom<DecimalValue> for NonPositiveIntegerValue
impl TryFrom<DecimalValue> for NonPositiveIntegerValue
Source§type Error = DecimalValue
type Error = DecimalValue
The type returned in the event of a conversion error.
Source§fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
Performs the conversion.
Source§impl TryFrom<DecimalValue> for ShortValue
impl TryFrom<DecimalValue> for ShortValue
Source§type Error = DecimalValue
type Error = DecimalValue
The type returned in the event of a conversion error.
Source§fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
Performs the conversion.
Source§impl TryFrom<DecimalValue> for UnsignedIntValue
impl TryFrom<DecimalValue> for UnsignedIntValue
Source§type Error = DecimalValue
type Error = DecimalValue
The type returned in the event of a conversion error.
Source§fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
Performs the conversion.
Source§impl TryFrom<DecimalValue> for UnsignedLongValue
impl TryFrom<DecimalValue> for UnsignedLongValue
Source§type Error = DecimalValue
type Error = DecimalValue
The type returned in the event of a conversion error.
Source§fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
Performs the conversion.
Source§impl TryFrom<DecimalValue> for UnsignedShortValue
impl TryFrom<DecimalValue> for UnsignedShortValue
Source§type Error = DecimalValue
type Error = DecimalValue
The type returned in the event of a conversion error.
Source§fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
Performs the conversion.
Source§impl TryFrom<Value> for DecimalValue
impl TryFrom<Value> for DecimalValue
Auto Trait Implementations§
impl !Freeze for DecimalValue
impl RefUnwindSafe for DecimalValue
impl Send for DecimalValue
impl !Sync for DecimalValue
impl Unpin for DecimalValue
impl UnwindSafe for DecimalValue
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