#[non_exhaustive]#[repr(u8)]pub enum DecimalValueType {
I8 = 0,
I16 = 1,
I32 = 2,
I64 = 3,
I128 = 4,
I256 = 5,
}
Expand description
Type of the decimal values.
This is used for other crates to understand the different underlying representations possible for decimals.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
I8 = 0
8-bit decimal value type.
I16 = 1
16-bit decimal value type.
I32 = 2
32-bit decimal value type.
I64 = 3
64-bit decimal value type.
I128 = 4
128-bit decimal value type.
I256 = 5
256-bit decimal value type.
Implementations§
Trait Implementations§
Source§impl Clone for DecimalValueType
impl Clone for DecimalValueType
Source§fn clone(&self) -> DecimalValueType
fn clone(&self) -> DecimalValueType
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 DecimalValueType
impl Debug for DecimalValueType
Source§impl Default for DecimalValueType
impl Default for DecimalValueType
Source§fn default() -> DecimalValueType
fn default() -> DecimalValueType
Returns the “default value” for a type. Read more
Source§impl From<DecimalValueType> for i32
impl From<DecimalValueType> for i32
Source§fn from(value: DecimalValueType) -> i32
fn from(value: DecimalValueType) -> i32
Converts to this type from the input type.
Source§impl Ord for DecimalValueType
impl Ord for DecimalValueType
Source§fn cmp(&self, other: &DecimalValueType) -> Ordering
fn cmp(&self, other: &DecimalValueType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DecimalValueType
impl PartialEq for DecimalValueType
Source§impl PartialOrd for DecimalValueType
impl PartialOrd for DecimalValueType
Source§impl TryFrom<i32> for DecimalValueType
impl TryFrom<i32> for DecimalValueType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<DecimalValueType, UnknownEnumValue>
fn try_from(value: i32) -> Result<DecimalValueType, UnknownEnumValue>
Performs the conversion.
impl Copy for DecimalValueType
impl Eq for DecimalValueType
impl StructuralPartialEq for DecimalValueType
Auto Trait Implementations§
impl Freeze for DecimalValueType
impl RefUnwindSafe for DecimalValueType
impl Send for DecimalValueType
impl Sync for DecimalValueType
impl Unpin for DecimalValueType
impl UnwindSafe for DecimalValueType
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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