pub struct Real;Expand description
REAL storage class: a 64-bit float.
Trait Implementations§
Source§impl AggregatePolicy<SQLiteDialect> for Real
impl AggregatePolicy<SQLiteDialect> for Real
Source§impl ArithmeticOutput for Real
impl ArithmeticOutput 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<Any> for Real
impl ArithmeticOutput<Any> 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<Integer> for Real
impl ArithmeticOutput<Integer> 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 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<Real> for Integer
impl ArithmeticOutput<Real> 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<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.Source§impl ArithmeticOutput<Real> for Any
impl ArithmeticOutput<Real> 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.impl Assignable for Real
impl Assignable<Integer> for Real
impl Assignable<Real> for Numeric
impl Assignable<Real> for Any
impl Compatible for Real
impl Compatible<Any> for Real
impl Compatible<Integer> for Real
impl Compatible<Numeric> for Real
impl Compatible<Placeholder> for Real
impl Compatible<Real> for Integer
impl Compatible<Real> for Numeric
impl Compatible<Real> for Any
impl Copy for Real
impl DataType for Real
Source§impl DefaultCastTypeName for Real
impl DefaultCastTypeName for Real
Source§const CAST_TYPE_NAME: &'static str = "REAL"
const CAST_TYPE_NAME: &'static str = "REAL"
The type name used in
CAST(expr AS <name>).impl Eq for Real
impl Floating for Real
impl Numeric for Real
Source§impl RoundingPolicy<SQLiteDialect> for Real
impl RoundingPolicy<SQLiteDialect> for Real
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 Real
impl SQLTypeToRust<SQLiteDialect> for Real
Source§impl SQLiteAffinity for Real
impl SQLiteAffinity for Real
impl StructuralPartialEq for Real
impl Temporal for Real
Auto Trait Implementations§
impl Freeze for Real
impl RefUnwindSafe for Real
impl Send for Real
impl Sync for Real
impl Unpin for Real
impl UnsafeUnpin for Real
impl UnwindSafe for Real
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.