#[non_exhaustive]pub enum DecimalWidth {
Show 13 variants
D9,
D18,
D38,
D57,
D76,
D115,
D153,
D230,
D307,
D462,
D616,
D924,
D1232,
}Expand description
Discriminator for the concrete decimal width carried by a
DynDecimal value.
Two values are guaranteed to share a concrete Dxx<S> family (i.e.
both are some scale of D38, or both some scale of D76, etc.) if
and only if their width values compare equal.
Use this to dispatch on the storage tier before unpacking.
Variants are gated by the same Cargo features that gate the
corresponding decimal width — they are only present in this enum
when the underlying Dxx type is enabled in the build.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
D9
32-bit storage; corresponds to crate::D9.
D18
64-bit storage; corresponds to crate::D18.
D38
128-bit storage; corresponds to crate::D38.
D57
192-bit storage; corresponds to crate::D57. Gated by d57 / wide.
D76
256-bit storage; corresponds to crate::D76. Gated by d76 / wide.
D115
384-bit storage; corresponds to crate::D115. Gated by d115 / wide.
D153
512-bit storage; corresponds to crate::D153. Gated by d153 / wide.
D230
768-bit storage; corresponds to crate::D230. Gated by d230 / wide.
D307
1024-bit storage; corresponds to crate::D307. Gated by d307 / wide / x-wide.
D462
1536-bit storage; corresponds to crate::D462. Gated by d462 / x-wide.
D616
2048-bit storage; corresponds to crate::D616. Gated by d616 / x-wide.
D924
3072-bit storage; corresponds to crate::D924. Gated by d924 / xx-wide.
D1232
4096-bit storage; corresponds to crate::D1232. Gated by d1232 / xx-wide.
Trait Implementations§
Source§impl Clone for DecimalWidth
impl Clone for DecimalWidth
Source§fn clone(&self) -> DecimalWidth
fn clone(&self) -> DecimalWidth
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DecimalWidth
impl Debug for DecimalWidth
Source§impl Hash for DecimalWidth
impl Hash for DecimalWidth
Source§impl PartialEq for DecimalWidth
impl PartialEq for DecimalWidth
Source§fn eq(&self, other: &DecimalWidth) -> bool
fn eq(&self, other: &DecimalWidth) -> bool
self and other values to be equal, and is used by ==.