Type Alias mz_repr::adt::numeric::Numeric

source ·
pub type Numeric = Decimal<NUMERIC_DATUM_WIDTH_USIZE>;
Expand description

A numeric value.

Aliased Type§

struct Numeric { /* private fields */ }

Trait Implementations§

source§

impl AsColumnType for Numeric

source§

fn as_column_type() -> ColumnType

The SQL column type of this Rust type
source§

impl<'a, E> DatumType<'a, E> for Numeric

source§

fn nullable() -> bool

Whether this Rust type can represent NULL values
source§

fn fallible() -> bool

Whether this Rust type can represent errors
source§

fn try_from_result( res: Result<Datum<'a>, E> ) -> Result<Self, Result<Datum<'a>, E>>

Try to convert a Result whose Ok variant is a Datum into this native Rust type (Self). If it fails the error variant will contain the original result.
source§

fn into_result(self, _temp_storage: &'a RowArena) -> Result<Datum<'a>, E>

Convert this Rust type into a Result containing a Datum, or an error
source§

impl Dec<NUMERIC_DATUM_WIDTH_USIZE> for Numeric

source§

impl DecimalLike for Numeric

source§

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.
source§

impl From<Timestamp> for Numeric

source§

fn from(ts: Timestamp) -> Self

Converts to this type from the input type.