pub struct Int2;Expand description
smallint (int2): 16-bit integer. Rust i16.
Trait Implementations§
Source§impl AggregatePolicy<PostgresDialect> for Int2
impl AggregatePolicy<PostgresDialect> for Int2
Source§impl ArithmeticOutput for Int2
impl ArithmeticOutput 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 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<Float8> for Int2
impl ArithmeticOutput<Float8> 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<Int2> for Int4
impl ArithmeticOutput<Int2> 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<Int2> for Int8
impl ArithmeticOutput<Int2> 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<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<Int2> for Float8
impl ArithmeticOutput<Int2> 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<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 Int2
impl ArithmeticOutput<Int4> 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<Int8> for Int2
impl ArithmeticOutput<Int8> 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 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.impl Assignable for Int2
impl Assignable<Int2> for Int4
impl Assignable<Int2> for Int8
impl Assignable<Int2> for Float4
impl Assignable<Int2> for Float8
impl Assignable<Int2> for Numeric
impl Assignable<Int2> for Any
impl Compatible for Int2
impl Compatible<Any> for Int2
impl Compatible<Float4> for Int2
impl Compatible<Float8> for Int2
impl Compatible<Int2> for Int4
impl Compatible<Int2> for Int8
impl Compatible<Int2> for Float4
impl Compatible<Int2> for Float8
impl Compatible<Int2> for Numeric
impl Compatible<Int2> for Any
impl Compatible<Int4> for Int2
impl Compatible<Int8> for Int2
impl Compatible<Numeric> for Int2
impl Compatible<Placeholder> for Int2
impl Copy for Int2
impl DataType for Int2
Source§impl DefaultCastTypeName for Int2
impl DefaultCastTypeName for Int2
Source§const CAST_TYPE_NAME: &'static str = "SMALLINT"
const CAST_TYPE_NAME: &'static str = "SMALLINT"
The type name used in
CAST(expr AS <name>).impl Eq for Int2
impl Integral for Int2
impl Numeric for Int2
Source§impl RoundingPolicy<PostgresDialect> for Int2
impl RoundingPolicy<PostgresDialect> for Int2
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 Int2
impl SQLTypeToRust<PostgresDialect> for Int2
impl StructuralPartialEq for Int2
Auto Trait Implementations§
impl Freeze for Int2
impl RefUnwindSafe for Int2
impl Send for Int2
impl Sync for Int2
impl Unpin for Int2
impl UnsafeUnpin for Int2
impl UnwindSafe for Int2
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.