Expand description
A rust variant of the Postgres Numeric type. The full spectrum of Postgres’
Numeric value range is supported.
Represented as an Optional BigDecimal. None for ‘NaN’, Some(bigdecimal) for
all other values.
Construct a new PgNumeric value from an optional BigDecimal
(None for NaN values).
Returns true if this PgNumeric value represents a NaN value.
Otherwise returns false.
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Creates a new value of this type from a buffer of data of the specified
Postgres Type in its binary format. Read more
Determines if a value of this type can be created from the specified
Postgres Type. Read more
Creates a new value of this type from a NULL SQL value. Read more
A convenience function that delegates to from_sql and from_sql_null depending on the
value of raw. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >=
operator. Read more
Converts the value of self into the binary format of the specified
Postgres Type, appending it to out. Read more
Determines if a value of this type can be converted to the specified
Postgres Type. Read more
An adaptor method used internally by Rust-Postgres. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Returns a reference to self as a ToSql trait object.
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,