#[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.
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.
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 PartialEq for DecimalValueType
impl PartialEq 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> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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