pub type Numeric = Decimal<NUMERIC_DATUM_WIDTH_USIZE>;
Expand description
A numeric value.
Aliased Type§
struct Numeric {
pub(crate) digits: u32,
pub(crate) exponent: i32,
pub(crate) bits: u8,
pub(crate) lsu: [u16; 13],
}
Fields§
§digits: u32
§exponent: i32
§bits: u8
§lsu: [u16; 13]
Trait Implementations§
source§impl AsColumnType for Numeric
impl AsColumnType for Numeric
source§fn as_column_type() -> ColumnType
fn as_column_type() -> ColumnType
The SQL column type of this Rust type
source§impl<'a, E> DatumType<'a, E> for Numeric
impl<'a, E> DatumType<'a, E> for Numeric
source§impl DecimalLike for Numeric
impl DecimalLike for Numeric
source§fn lossy_from(i: i64) -> Self
fn lossy_from(i: i64) -> Self
Used to do value-to-value conversions while consuming the input value. Depending on the
implementation it may be potentially lossy.