pub struct Numeric;Expand description
numeric(p, s): exact decimal.
Trait Implementations§
Source§impl AggregatePolicy<PostgresDialect> for Numeric
impl AggregatePolicy<PostgresDialect> for Numeric
Source§impl ArithmeticOutput for Numeric
impl ArithmeticOutput for Numeric
Source§type Nullability = PropagateNullability
type Nullability = PropagateNullability
Whether the operator itself can produce
NULL even from non-NULL
operands: / and % on SQLite’s Integer, Real and Numeric and
on every MySQL numeric type, which return NULL for a zero divisor.
PostgreSQL raises an error instead, so its operators only propagate
operand nullability.Source§impl ArithmeticOutput<Float4> for Numeric
impl ArithmeticOutput<Float4> for Numeric
Source§type Nullability = PropagateNullability
type Nullability = PropagateNullability
Whether the operator itself can produce
NULL even from non-NULL
operands: / and % on SQLite’s Integer, Real and Numeric and
on every MySQL numeric type, which return NULL for a zero divisor.
PostgreSQL raises an error instead, so its operators only propagate
operand nullability.Source§impl ArithmeticOutput<Float8> for Numeric
impl ArithmeticOutput<Float8> for Numeric
Source§type Nullability = PropagateNullability
type Nullability = PropagateNullability
Whether the operator itself can produce
NULL even from non-NULL
operands: / and % on SQLite’s Integer, Real and Numeric and
on every MySQL numeric type, which return NULL for a zero divisor.
PostgreSQL raises an error instead, so its operators only propagate
operand nullability.Source§impl ArithmeticOutput<Int2> for Numeric
impl ArithmeticOutput<Int2> for Numeric
Source§type Nullability = PropagateNullability
type Nullability = PropagateNullability
Whether the operator itself can produce
NULL even from non-NULL
operands: / and % on SQLite’s Integer, Real and Numeric and
on every MySQL numeric type, which return NULL for a zero divisor.
PostgreSQL raises an error instead, so its operators only propagate
operand nullability.Source§impl ArithmeticOutput<Int4> for Numeric
impl ArithmeticOutput<Int4> for Numeric
Source§type Nullability = PropagateNullability
type Nullability = PropagateNullability
Whether the operator itself can produce
NULL even from non-NULL
operands: / and % on SQLite’s Integer, Real and Numeric and
on every MySQL numeric type, which return NULL for a zero divisor.
PostgreSQL raises an error instead, so its operators only propagate
operand nullability.Source§impl ArithmeticOutput<Int8> for Numeric
impl ArithmeticOutput<Int8> for Numeric
Source§type Nullability = PropagateNullability
type Nullability = PropagateNullability
Whether the operator itself can produce
NULL even from non-NULL
operands: / and % on SQLite’s Integer, Real and Numeric and
on every MySQL numeric type, which return NULL for a zero divisor.
PostgreSQL raises an error instead, so its operators only propagate
operand nullability.Source§impl ArithmeticOutput<Numeric> for Int2
impl ArithmeticOutput<Numeric> for Int2
Source§type Nullability = PropagateNullability
type Nullability = PropagateNullability
Whether the operator itself can produce
NULL even from non-NULL
operands: / and % on SQLite’s Integer, Real and Numeric and
on every MySQL numeric type, which return NULL for a zero divisor.
PostgreSQL raises an error instead, so its operators only propagate
operand nullability.Source§impl ArithmeticOutput<Numeric> for Int4
impl ArithmeticOutput<Numeric> for Int4
Source§type Nullability = PropagateNullability
type Nullability = PropagateNullability
Whether the operator itself can produce
NULL even from non-NULL
operands: / and % on SQLite’s Integer, Real and Numeric and
on every MySQL numeric type, which return NULL for a zero divisor.
PostgreSQL raises an error instead, so its operators only propagate
operand nullability.Source§impl ArithmeticOutput<Numeric> for Int8
impl ArithmeticOutput<Numeric> for Int8
Source§type Nullability = PropagateNullability
type Nullability = PropagateNullability
Whether the operator itself can produce
NULL even from non-NULL
operands: / and % on SQLite’s Integer, Real and Numeric and
on every MySQL numeric type, which return NULL for a zero divisor.
PostgreSQL raises an error instead, so its operators only propagate
operand nullability.Source§impl ArithmeticOutput<Numeric> for Float4
impl ArithmeticOutput<Numeric> for Float4
Source§type Nullability = PropagateNullability
type Nullability = PropagateNullability
Whether the operator itself can produce
NULL even from non-NULL
operands: / and % on SQLite’s Integer, Real and Numeric and
on every MySQL numeric type, which return NULL for a zero divisor.
PostgreSQL raises an error instead, so its operators only propagate
operand nullability.Source§impl ArithmeticOutput<Numeric> for Float8
impl ArithmeticOutput<Numeric> for Float8
Source§type Nullability = PropagateNullability
type Nullability = PropagateNullability
Whether the operator itself can produce
NULL even from non-NULL
operands: / and % on SQLite’s Integer, Real and Numeric and
on every MySQL numeric type, which return NULL for a zero divisor.
PostgreSQL raises an error instead, so its operators only propagate
operand nullability.impl Assignable for Numeric
impl Assignable<Float4> for Numeric
impl Assignable<Float8> for Numeric
impl Assignable<Int2> for Numeric
impl Assignable<Int4> for Numeric
impl Assignable<Int8> for Numeric
impl Assignable<Numeric> for Any
impl Compatible for Numeric
impl Compatible<Any> for Numeric
impl Compatible<Float4> for Numeric
impl Compatible<Float8> for Numeric
impl Compatible<Int2> for Numeric
impl Compatible<Int4> for Numeric
impl Compatible<Int8> for Numeric
impl Compatible<Numeric> for Int2
impl Compatible<Numeric> for Int4
impl Compatible<Numeric> for Int8
impl Compatible<Numeric> for Float4
impl Compatible<Numeric> for Float8
impl Compatible<Numeric> for Any
impl Compatible<Placeholder> for Numeric
impl Copy for Numeric
impl DataType for Numeric
Source§impl DefaultCastTypeName for Numeric
impl DefaultCastTypeName for Numeric
Source§const CAST_TYPE_NAME: &'static str = "NUMERIC"
const CAST_TYPE_NAME: &'static str = "NUMERIC"
The type name used in
CAST(expr AS <name>).impl Eq for Numeric
impl Numeric for Numeric
Source§impl RoundingPolicy<PostgresDialect> for Numeric
impl RoundingPolicy<PostgresDialect> for Numeric
Source§fn coerce_result<'a, V>(sql: SQL<'a, V>) -> SQL<'a, V>where
V: SQLParam + 'a,
fn coerce_result<'a, V>(sql: SQL<'a, V>) -> SQL<'a, V>where
V: SQLParam + 'a,
Coerces a rounding function’s result to
Self::Output. Read moreSource§impl SQLTypeToRust<PostgresDialect> for Numeric
Available on non-crate feature rust-decimal only.
impl SQLTypeToRust<PostgresDialect> for Numeric
Available on non-crate feature
rust-decimal only.impl StructuralPartialEq for Numeric
Auto Trait Implementations§
impl Freeze for Numeric
impl RefUnwindSafe for Numeric
impl Send for Numeric
impl Sync for Numeric
impl Unpin for Numeric
impl UnsafeUnpin for Numeric
impl UnwindSafe for Numeric
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<'a, T, D> CastTarget<'a, T, D> for Twhere
T: DataType + DefaultCastTypeName,
impl<'a, T, D> CastTarget<'a, T, D> for Twhere
T: DataType + DefaultCastTypeName,
Source§fn cast_type_name(self) -> &'a str
fn cast_type_name(self) -> &'a str
The SQL type name to cast to.