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