pub struct Numeric;Expand description
NUMERIC affinity: stored as an integer or real when possible.
Trait Implementations§
Source§impl AggregatePolicy<SQLiteDialect> for Numeric
impl AggregatePolicy<SQLiteDialect> 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<Any> for Numeric
impl ArithmeticOutput<Any> 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<Integer> for Numeric
impl ArithmeticOutput<Integer> 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 Integer
impl ArithmeticOutput<Numeric> for Integer
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 Real
impl ArithmeticOutput<Numeric> for Real
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 Any
impl ArithmeticOutput<Numeric> for Any
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<Real> for Numeric
impl ArithmeticOutput<Real> 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.impl Assignable for Numeric
impl Assignable<Integer> for Numeric
impl Assignable<Numeric> for Any
impl Assignable<Real> for Numeric
impl Compatible for Numeric
impl Compatible<Any> for Numeric
impl Compatible<Integer> for Numeric
impl Compatible<Numeric> for Integer
impl Compatible<Numeric> for Real
impl Compatible<Numeric> for Any
impl Compatible<Placeholder> for Numeric
impl Compatible<Real> 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<SQLiteDialect> for Numeric
impl RoundingPolicy<SQLiteDialect> for Numeric
Source§fn precision_operand<'a, V>(expr: SQL<'a, V>) -> SQL<'a, V>where
V: SQLParam + 'a,
fn precision_operand<'a, V>(expr: SQL<'a, V>) -> SQL<'a, V>where
V: SQLParam + 'a,
Prepares the operand of
ROUND(expr, precision). Read moreSource§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<SQLiteDialect> for Numeric
impl SQLTypeToRust<SQLiteDialect> for Numeric
Source§impl SQLiteAffinity for Numeric
impl SQLiteAffinity for Numeric
impl StructuralPartialEq for Numeric
impl Temporal 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.