Skip to main content

SmallInt

Struct SmallInt 

Source
pub struct SmallInt;

Trait Implementations§

Source§

impl AggregatePolicy<MySQLDialect> for SmallInt

Source§

type Sum = Decimal

Result type of SUM.
Source§

type Avg = Decimal

Result type of AVG.
Source§

impl Assignable for SmallInt

Source§

impl Assignable<SmallInt> for MediumInt

Source§

impl Assignable<SmallInt> for Int

Source§

impl Assignable<SmallInt> for BigInt

Source§

impl Assignable<SmallInt> for Float

Source§

impl Assignable<SmallInt> for Double

Source§

impl Assignable<SmallInt> for Decimal

Source§

impl Assignable<SmallInt> for Any

Source§

impl Assignable<TinyInt> for SmallInt

Source§

impl Assignable<TinyIntUnsigned> for SmallInt

Source§

impl Clone for SmallInt

Source§

fn clone(&self) -> SmallInt

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Compatible for SmallInt

Source§

impl Compatible<Any> for SmallInt

Source§

impl Compatible<BigInt> for SmallInt

Source§

impl Compatible<Decimal> for SmallInt

Source§

impl Compatible<Double> for SmallInt

Source§

impl Compatible<Float> for SmallInt

Source§

impl Compatible<Int> for SmallInt

Source§

impl Compatible<MediumInt> for SmallInt

Source§

impl Compatible<Placeholder> for SmallInt

Source§

impl Compatible<SmallInt> for TinyInt

Source§

impl Compatible<SmallInt> for MediumInt

Source§

impl Compatible<SmallInt> for Int

Source§

impl Compatible<SmallInt> for BigInt

Source§

impl Compatible<SmallInt> for Year

Source§

impl Compatible<SmallInt> for Decimal

Source§

impl Compatible<SmallInt> for Float

Source§

impl Compatible<SmallInt> for Double

Source§

impl Compatible<SmallInt> for Any

Source§

impl Compatible<TinyInt> for SmallInt

Source§

impl Compatible<Year> for SmallInt

Source§

impl Copy for SmallInt

Source§

impl DataType for SmallInt

Source§

impl Debug for SmallInt

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for SmallInt

Source§

fn default() -> SmallInt

Returns the “default value” for a type. Read more
Source§

impl Eq for SmallInt

Source§

impl Hash for SmallInt

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Integral for SmallInt

Source§

impl NegOutput for SmallInt

Source§

type Output = BigInt

The resulting SQL type of -expr.
Source§

impl Numeric for SmallInt

Source§

impl PartialEq for SmallInt

Source§

fn eq(&self, other: &SmallInt) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl RoundingPolicy<MySQLDialect> for SmallInt

Source§

type Output = BigInt

Result type of the rounding functions.
Source§

fn precision_operand<'a, V>(expr: SQL<'a, V>) -> SQL<'a, V>
where V: SQLParam + 'a,

Prepares the operand of ROUND(expr, precision). Read more
Source§

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 more
Source§

impl SQLTypeToRust<MySQLDialect> for SmallInt

Source§

impl StatisticalAggregatePolicy<MySQLDialect> for SmallInt

Source§

type StddevPop = Double

Result type of STDDEV_POP.
Source§

type StddevSamp = Double

Result type of STDDEV_SAMP.
Source§

type VarPop = Double

Result type of VAR_POP.
Source§

type VarSamp = Double

Result type of VAR_SAMP / VARIANCE.
Source§

impl StructuralPartialEq for SmallInt

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Joined, From> JoinKey<From, JoinReverse> for Joined
where From: Joinable<Joined> + ?Sized,

Source§

fn pairs() -> &'static [(&'static str, &'static str)]

(joined_column, from_column) pairs the ON condition matches, in key order, read through Self::pair.
Source§

fn pair(pair: &(&'static str, &'static str)) -> (&'static str, &'static str)

The (joined_column, from_column) names of pair.
Source§

impl<List> ListIncludes<Nil, ()> for List

Source§

impl<Mk> MarkerAggValidFor<()> for Mk

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> TypeEq<T> for T