pub struct Float4;Expand description
real (float4): 32-bit float. Rust f32.
Trait Implementations§
Source§impl AggregatePolicy<PostgresDialect> for Float4
impl AggregatePolicy<PostgresDialect> for Float4
Source§impl ArithmeticOutput for Float4
impl ArithmeticOutput 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<Float4> for Int2
impl ArithmeticOutput<Float4> 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<Float4> for Int4
impl ArithmeticOutput<Float4> 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<Float4> for Int8
impl ArithmeticOutput<Float4> 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<Float4> for Float8
impl ArithmeticOutput<Float4> 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.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 Float4
impl ArithmeticOutput<Float8> 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<Int2> for Float4
impl ArithmeticOutput<Int2> 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<Int4> for Float4
impl ArithmeticOutput<Int4> 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<Int8> for Float4
impl ArithmeticOutput<Int8> 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 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.impl Assignable for Float4
impl Assignable<Float4> for Float8
impl Assignable<Float4> for Numeric
impl Assignable<Float4> for Any
impl Assignable<Int2> for Float4
impl Assignable<Int4> for Float4
impl Assignable<Int8> for Float4
impl Compatible for Float4
impl Compatible<Any> for Float4
impl Compatible<Float4> for Float8
impl Compatible<Float4> for Int2
impl Compatible<Float4> for Int4
impl Compatible<Float4> for Int8
impl Compatible<Float4> for Numeric
impl Compatible<Float4> for Any
impl Compatible<Float8> for Float4
impl Compatible<Int2> for Float4
impl Compatible<Int4> for Float4
impl Compatible<Int8> for Float4
impl Compatible<Numeric> for Float4
impl Compatible<Placeholder> for Float4
impl Copy for Float4
impl DataType for Float4
Source§impl DefaultCastTypeName for Float4
impl DefaultCastTypeName for Float4
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 Float4
impl Floating for Float4
impl Numeric for Float4
Source§impl RoundingPolicy<PostgresDialect> for Float4
impl RoundingPolicy<PostgresDialect> for Float4
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<PostgresDialect> for Float4
impl SQLTypeToRust<PostgresDialect> for Float4
impl StructuralPartialEq for Float4
Auto Trait Implementations§
impl Freeze for Float4
impl RefUnwindSafe for Float4
impl Send for Float4
impl Sync for Float4
impl Unpin for Float4
impl UnsafeUnpin for Float4
impl UnwindSafe for Float4
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.