pub enum IntegerValue {
Show 13 variants
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 Integer
value.
Variants§
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 IntegerValue
impl IntegerValue
pub fn datatype(&self) -> IntegerDatatype
Source§impl IntegerValue
impl IntegerValue
pub fn as_ref(&self) -> IntegerValueRef<'_>
Trait Implementations§
Source§impl Clone for IntegerValue
impl Clone for IntegerValue
Source§fn clone(&self) -> IntegerValue
fn clone(&self) -> IntegerValue
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 IntegerValue
impl Debug for IntegerValue
Source§impl Display for IntegerValue
impl Display for IntegerValue
Source§impl From<IntValue> for IntegerValue
impl From<IntValue> for IntegerValue
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<IntegerValue> for Value
impl From<IntegerValue> for Value
Source§fn from(value: IntegerValue) -> Self
fn from(value: IntegerValue) -> Self
Converts to this type from the input type.
Source§impl From<LongValue> for IntegerValue
impl From<LongValue> for IntegerValue
Source§impl From<NonNegativeIntegerValue> for IntegerValue
impl From<NonNegativeIntegerValue> for IntegerValue
Source§fn from(value: NonNegativeIntegerValue) -> Self
fn from(value: NonNegativeIntegerValue) -> Self
Converts to this type from the input type.
Source§impl From<NonPositiveIntegerValue> for IntegerValue
impl From<NonPositiveIntegerValue> for IntegerValue
Source§fn from(value: NonPositiveIntegerValue) -> Self
fn from(value: NonPositiveIntegerValue) -> Self
Converts to this type from the input type.
Source§impl From<ShortValue> for IntegerValue
impl From<ShortValue> for IntegerValue
Source§fn from(value: ShortValue) -> Self
fn from(value: ShortValue) -> Self
Converts to this type from the input type.
Source§impl From<UnsignedIntValue> for IntegerValue
impl From<UnsignedIntValue> for IntegerValue
Source§fn from(value: UnsignedIntValue) -> Self
fn from(value: UnsignedIntValue) -> Self
Converts to this type from the input type.
Source§impl From<UnsignedLongValue> for IntegerValue
impl From<UnsignedLongValue> for IntegerValue
Source§fn from(value: UnsignedLongValue) -> Self
fn from(value: UnsignedLongValue) -> Self
Converts to this type from the input type.
Source§impl From<UnsignedShortValue> for IntegerValue
impl From<UnsignedShortValue> for IntegerValue
Source§fn from(value: UnsignedShortValue) -> Self
fn from(value: UnsignedShortValue) -> Self
Converts to this type from the input type.
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<IntegerValue> for IntValue
impl TryFrom<IntegerValue> for IntValue
Source§type Error = IntegerValue
type Error = IntegerValue
The type returned in the event of a conversion error.
Source§fn try_from(value: IntegerValue) -> Result<Self, IntegerValue>
fn try_from(value: IntegerValue) -> Result<Self, IntegerValue>
Performs the conversion.
Source§impl TryFrom<IntegerValue> for LongValue
impl TryFrom<IntegerValue> for LongValue
Source§type Error = IntegerValue
type Error = IntegerValue
The type returned in the event of a conversion error.
Source§fn try_from(value: IntegerValue) -> Result<Self, IntegerValue>
fn try_from(value: IntegerValue) -> Result<Self, IntegerValue>
Performs the conversion.
Source§impl TryFrom<IntegerValue> for NonNegativeIntegerValue
impl TryFrom<IntegerValue> for NonNegativeIntegerValue
Source§type Error = IntegerValue
type Error = IntegerValue
The type returned in the event of a conversion error.
Source§fn try_from(value: IntegerValue) -> Result<Self, IntegerValue>
fn try_from(value: IntegerValue) -> Result<Self, IntegerValue>
Performs the conversion.
Source§impl TryFrom<IntegerValue> for NonPositiveIntegerValue
impl TryFrom<IntegerValue> for NonPositiveIntegerValue
Source§type Error = IntegerValue
type Error = IntegerValue
The type returned in the event of a conversion error.
Source§fn try_from(value: IntegerValue) -> Result<Self, IntegerValue>
fn try_from(value: IntegerValue) -> Result<Self, IntegerValue>
Performs the conversion.
Source§impl TryFrom<IntegerValue> for ShortValue
impl TryFrom<IntegerValue> for ShortValue
Source§type Error = IntegerValue
type Error = IntegerValue
The type returned in the event of a conversion error.
Source§fn try_from(value: IntegerValue) -> Result<Self, IntegerValue>
fn try_from(value: IntegerValue) -> Result<Self, IntegerValue>
Performs the conversion.
Source§impl TryFrom<IntegerValue> for UnsignedIntValue
impl TryFrom<IntegerValue> for UnsignedIntValue
Source§type Error = IntegerValue
type Error = IntegerValue
The type returned in the event of a conversion error.
Source§fn try_from(value: IntegerValue) -> Result<Self, IntegerValue>
fn try_from(value: IntegerValue) -> Result<Self, IntegerValue>
Performs the conversion.
Source§impl TryFrom<IntegerValue> for UnsignedLongValue
impl TryFrom<IntegerValue> for UnsignedLongValue
Source§type Error = IntegerValue
type Error = IntegerValue
The type returned in the event of a conversion error.
Source§fn try_from(value: IntegerValue) -> Result<Self, IntegerValue>
fn try_from(value: IntegerValue) -> Result<Self, IntegerValue>
Performs the conversion.
Source§impl TryFrom<IntegerValue> for UnsignedShortValue
impl TryFrom<IntegerValue> for UnsignedShortValue
Source§type Error = IntegerValue
type Error = IntegerValue
The type returned in the event of a conversion error.
Source§fn try_from(value: IntegerValue) -> Result<Self, IntegerValue>
fn try_from(value: IntegerValue) -> Result<Self, IntegerValue>
Performs the conversion.
Source§impl TryFrom<Value> for IntegerValue
impl TryFrom<Value> for IntegerValue
Auto Trait Implementations§
impl Freeze for IntegerValue
impl RefUnwindSafe for IntegerValue
impl Send for IntegerValue
impl Sync for IntegerValue
impl Unpin for IntegerValue
impl UnwindSafe for IntegerValue
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