Skip to main content

Compatible

Trait Compatible 

Source
pub trait Compatible<Rhs: DataType = Self>: DataType { }
Expand description

SQL types that can be compared with Rhs: Self on the left of =, <, IN, LIKE and similar operators, Rhs on the right.

Comparison is loose: it allows any pair the database can compare without an explicit cast. The rules, per dialect:

  • Every dialect: a type is compatible with itself; Placeholder and the dialect’s Any (untyped SQL) are compatible with every marker of that dialect, both ways; tuples are compatible element by element.
  • SQLite: Integer, Real and Numeric with each other; Text with Blob.
  • PostgreSQL: all of Int2, Int4, Int8, Float4, Float8 and Numeric with each other; Text, Varchar, Char and Enum with each other; Text with Date, Time, Timestamp and Timestamptz; Timestamp with Timestamptz; Time with Timetz; Json with Jsonb; Inet with Cidr; MacAddr with MacAddr8.
  • MySQL: signed integers with each other, and unsigned integers with each other, but not signed with unsigned (cast explicitly); Year, Float, Double and Decimal with every integer, and Float, Double and Decimal with each other; text types with each other and with Enum and Set (but Enum not with Set); binary types and Bit with each other; DateTime with Timestamp.

Everything else is rejected, for example a number with text, or a boolean with an integer. An Array<T> is compatible only with the same Array<T>.

For storing a value in a column, the stricter Assignable applies.

§Examples

use drizzle_types::{Compatible, DataType};
use drizzle_types::postgres::types::{Float8, Int4, Jsonb, Json, Text, Varchar};

fn compatible<L: Compatible<R>, R: DataType>() {}

compatible::<Int4, Float8>(); // int4 = float8
compatible::<Varchar, Text>(); // varchar = text
compatible::<Jsonb, Json>(); // jsonb = json

§Type safety

ⓘ
use drizzle_types::{Compatible, DataType};
use drizzle_types::postgres::types::{Int4, Text};

fn compatible<L: Compatible<R>, R: DataType>() {}

compatible::<Int4, Text>(); // an integer cannot be compared with text

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T0, U0, T1, U1, T2, U2, T3, U3, T4, U4, T5, U5, T6, U6, T7, U7> Compatible<(U0, U1, U2, U3, U4, U5, U6, U7)> for (T0, T1, T2, T3, T4, T5, T6, T7)
where T0: DataType + Compatible<U0>, U0: DataType, T1: DataType + Compatible<U1>, U1: DataType, T2: DataType + Compatible<U2>, U2: DataType, T3: DataType + Compatible<U3>, U3: DataType, T4: DataType + Compatible<U4>, U4: DataType, T5: DataType + Compatible<U5>, U5: DataType, T6: DataType + Compatible<U6>, U6: DataType, T7: DataType + Compatible<U7>, U7: DataType,

Source§

impl<T0, U0, T1, U1, T2, U2, T3, U3, T4, U4, T5, U5, T6, U6> Compatible<(U0, U1, U2, U3, U4, U5, U6)> for (T0, T1, T2, T3, T4, T5, T6)
where T0: DataType + Compatible<U0>, U0: DataType, T1: DataType + Compatible<U1>, U1: DataType, T2: DataType + Compatible<U2>, U2: DataType, T3: DataType + Compatible<U3>, U3: DataType, T4: DataType + Compatible<U4>, U4: DataType, T5: DataType + Compatible<U5>, U5: DataType, T6: DataType + Compatible<U6>, U6: DataType,

Source§

impl<T0, U0, T1, U1, T2, U2, T3, U3, T4, U4, T5, U5> Compatible<(U0, U1, U2, U3, U4, U5)> for (T0, T1, T2, T3, T4, T5)
where T0: DataType + Compatible<U0>, U0: DataType, T1: DataType + Compatible<U1>, U1: DataType, T2: DataType + Compatible<U2>, U2: DataType, T3: DataType + Compatible<U3>, U3: DataType, T4: DataType + Compatible<U4>, U4: DataType, T5: DataType + Compatible<U5>, U5: DataType,

Source§

impl<T0, U0, T1, U1, T2, U2, T3, U3, T4, U4> Compatible<(U0, U1, U2, U3, U4)> for (T0, T1, T2, T3, T4)
where T0: DataType + Compatible<U0>, U0: DataType, T1: DataType + Compatible<U1>, U1: DataType, T2: DataType + Compatible<U2>, U2: DataType, T3: DataType + Compatible<U3>, U3: DataType, T4: DataType + Compatible<U4>, U4: DataType,

Source§

impl<T0, U0, T1, U1, T2, U2, T3, U3> Compatible<(U0, U1, U2, U3)> for (T0, T1, T2, T3)
where T0: DataType + Compatible<U0>, U0: DataType, T1: DataType + Compatible<U1>, U1: DataType, T2: DataType + Compatible<U2>, U2: DataType, T3: DataType + Compatible<U3>, U3: DataType,

Source§

impl<T0, U0, T1, U1, T2, U2> Compatible<(U0, U1, U2)> for (T0, T1, T2)
where T0: DataType + Compatible<U0>, U0: DataType, T1: DataType + Compatible<U1>, U1: DataType, T2: DataType + Compatible<U2>, U2: DataType,

Source§

impl<T0, U0, T1, U1> Compatible<(U0, U1)> for (T0, T1)
where T0: DataType + Compatible<U0>, U0: DataType, T1: DataType + Compatible<U1>, U1: DataType,

Source§

impl<T0, U0> Compatible<(U0,)> for (T0,)
where T0: DataType + Compatible<U0>, U0: DataType,

Implementors§

Source§

impl Compatible for drizzle_types::sqlite::types::Any

Source§

impl Compatible for drizzle_types::postgres::types::Any

Source§

impl Compatible for drizzle_types::mysql::types::Any

Source§

impl Compatible for BigInt

Source§

impl Compatible for BigIntUnsigned

Source§

impl Compatible for Binary

Source§

impl Compatible for Bit

Source§

impl Compatible for BitString

Source§

impl Compatible for drizzle_types::sqlite::types::Blob

Source§

impl Compatible for drizzle_types::mysql::types::Blob

Source§

impl Compatible for drizzle_types::postgres::types::Boolean

Source§

impl Compatible for drizzle_types::mysql::types::Boolean

Source§

impl Compatible for Bytea

Source§

impl Compatible for drizzle_types::postgres::types::Char

Source§

impl Compatible for drizzle_types::mysql::types::Char

Source§

impl Compatible for Cidr

Source§

impl Compatible for Circle

Source§

impl Compatible for drizzle_types::postgres::types::Date

Source§

impl Compatible for drizzle_types::mysql::types::Date

Source§

impl Compatible for DateTime

Source§

impl Compatible for Decimal

Source§

impl Compatible for Double

Source§

impl Compatible for drizzle_types::postgres::types::Enum

Source§

impl Compatible for drizzle_types::mysql::types::Enum

Source§

impl Compatible for Float

Source§

impl Compatible for Float4

Source§

impl Compatible for Float8

Source§

impl Compatible for Inet

Source§

impl Compatible for Int

Source§

impl Compatible for Int2

Source§

impl Compatible for Int4

Source§

impl Compatible for Int8

Source§

impl Compatible for IntUnsigned

Source§

impl Compatible for Integer

Source§

impl Compatible for Interval

Source§

impl Compatible for drizzle_types::postgres::types::Json

Source§

impl Compatible for drizzle_types::mysql::types::Json

Source§

impl Compatible for Jsonb

Source§

impl Compatible for Line

Source§

impl Compatible for LineSegment

Source§

impl Compatible for LineString

Source§

impl Compatible for LongBlob

Source§

impl Compatible for LongText

Source§

impl Compatible for MacAddr

Source§

impl Compatible for MacAddr8

Source§

impl Compatible for MediumBlob

Source§

impl Compatible for MediumInt

Source§

impl Compatible for MediumIntUnsigned

Source§

impl Compatible for MediumText

Source§

impl Compatible for drizzle_types::sqlite::types::Numeric

Source§

impl Compatible for drizzle_types::postgres::types::Numeric

Source§

impl Compatible for Placeholder

Source§

impl Compatible for Point

Source§

impl Compatible for Polygon

Source§

impl Compatible for Real

Source§

impl Compatible for Rect

Source§

impl Compatible for Set

Source§

impl Compatible for SmallInt

Source§

impl Compatible for SmallIntUnsigned

Source§

impl Compatible for drizzle_types::sqlite::types::Text

Source§

impl Compatible for drizzle_types::postgres::types::Text

Source§

impl Compatible for drizzle_types::mysql::types::Text

Source§

impl Compatible for drizzle_types::postgres::types::Time

Source§

impl Compatible for drizzle_types::mysql::types::Time

Source§

impl Compatible for drizzle_types::postgres::types::Timestamp

Source§

impl Compatible for drizzle_types::mysql::types::Timestamp

Source§

impl Compatible for Timestamptz

Source§

impl Compatible for Timetz

Source§

impl Compatible for TinyBlob

Source§

impl Compatible for TinyInt

Source§

impl Compatible for TinyIntUnsigned

Source§

impl Compatible for TinyText

Source§

impl Compatible for Uuid

Source§

impl Compatible for Varbinary

Source§

impl Compatible for drizzle_types::postgres::types::Varchar

Source§

impl Compatible for drizzle_types::mysql::types::Varchar

Source§

impl Compatible for Year

Source§

impl Compatible<Any> for BigInt

Source§

impl Compatible<Any> for BigIntUnsigned

Source§

impl Compatible<Any> for Binary

Source§

impl Compatible<Any> for Bit

Source§

impl Compatible<Any> for BitString

Source§

impl Compatible<Any> for drizzle_types::sqlite::types::Blob

Source§

impl Compatible<Any> for drizzle_types::mysql::types::Blob

Source§

impl Compatible<Any> for drizzle_types::postgres::types::Boolean

Source§

impl Compatible<Any> for drizzle_types::mysql::types::Boolean

Source§

impl Compatible<Any> for Bytea

Source§

impl Compatible<Any> for drizzle_types::postgres::types::Char

Source§

impl Compatible<Any> for drizzle_types::mysql::types::Char

Source§

impl Compatible<Any> for Cidr

Source§

impl Compatible<Any> for Circle

Source§

impl Compatible<Any> for drizzle_types::postgres::types::Date

Source§

impl Compatible<Any> for drizzle_types::mysql::types::Date

Source§

impl Compatible<Any> for DateTime

Source§

impl Compatible<Any> for Decimal

Source§

impl Compatible<Any> for Double

Source§

impl Compatible<Any> for drizzle_types::postgres::types::Enum

Source§

impl Compatible<Any> for drizzle_types::mysql::types::Enum

Source§

impl Compatible<Any> for Float

Source§

impl Compatible<Any> for Float4

Source§

impl Compatible<Any> for Float8

Source§

impl Compatible<Any> for Inet

Source§

impl Compatible<Any> for Int

Source§

impl Compatible<Any> for Int2

Source§

impl Compatible<Any> for Int4

Source§

impl Compatible<Any> for Int8

Source§

impl Compatible<Any> for IntUnsigned

Source§

impl Compatible<Any> for Integer

Source§

impl Compatible<Any> for Interval

Source§

impl Compatible<Any> for drizzle_types::postgres::types::Json

Source§

impl Compatible<Any> for drizzle_types::mysql::types::Json

Source§

impl Compatible<Any> for Jsonb

Source§

impl Compatible<Any> for Line

Source§

impl Compatible<Any> for LineSegment

Source§

impl Compatible<Any> for LineString

Source§

impl Compatible<Any> for LongBlob

Source§

impl Compatible<Any> for LongText

Source§

impl Compatible<Any> for MacAddr

Source§

impl Compatible<Any> for MacAddr8

Source§

impl Compatible<Any> for MediumBlob

Source§

impl Compatible<Any> for MediumInt

Source§

impl Compatible<Any> for MediumIntUnsigned

Source§

impl Compatible<Any> for MediumText

Source§

impl Compatible<Any> for drizzle_types::sqlite::types::Numeric

Source§

impl Compatible<Any> for drizzle_types::postgres::types::Numeric

Source§

impl Compatible<Any> for Placeholder

Source§

impl Compatible<Any> for Placeholder

Source§

impl Compatible<Any> for Placeholder

Source§

impl Compatible<Any> for Point

Source§

impl Compatible<Any> for Polygon

Source§

impl Compatible<Any> for Real

Source§

impl Compatible<Any> for Rect

Source§

impl Compatible<Any> for Set

Source§

impl Compatible<Any> for SmallInt

Source§

impl Compatible<Any> for SmallIntUnsigned

Source§

impl Compatible<Any> for drizzle_types::sqlite::types::Text

Source§

impl Compatible<Any> for drizzle_types::postgres::types::Text

Source§

impl Compatible<Any> for drizzle_types::mysql::types::Text

Source§

impl Compatible<Any> for drizzle_types::postgres::types::Time

Source§

impl Compatible<Any> for drizzle_types::mysql::types::Time

Source§

impl Compatible<Any> for drizzle_types::postgres::types::Timestamp

Source§

impl Compatible<Any> for drizzle_types::mysql::types::Timestamp

Source§

impl Compatible<Any> for Timestamptz

Source§

impl Compatible<Any> for Timetz

Source§

impl Compatible<Any> for TinyBlob

Source§

impl Compatible<Any> for TinyInt

Source§

impl Compatible<Any> for TinyIntUnsigned

Source§

impl Compatible<Any> for TinyText

Source§

impl Compatible<Any> for Uuid

Source§

impl Compatible<Any> for Varbinary

Source§

impl Compatible<Any> for drizzle_types::postgres::types::Varchar

Source§

impl Compatible<Any> for drizzle_types::mysql::types::Varchar

Source§

impl Compatible<Any> for Year

Source§

impl Compatible<BigInt> for drizzle_types::mysql::types::Any

Source§

impl Compatible<BigInt> for Decimal

Source§

impl Compatible<BigInt> for Double

Source§

impl Compatible<BigInt> for Float

Source§

impl Compatible<BigInt> for Int

Source§

impl Compatible<BigInt> for MediumInt

Source§

impl Compatible<BigInt> for Placeholder

Source§

impl Compatible<BigInt> for SmallInt

Source§

impl Compatible<BigInt> for TinyInt

Source§

impl Compatible<BigInt> for Year

Source§

impl Compatible<BigIntUnsigned> for drizzle_types::mysql::types::Any

Source§

impl Compatible<BigIntUnsigned> for Decimal

Source§

impl Compatible<BigIntUnsigned> for Double

Source§

impl Compatible<BigIntUnsigned> for Float

Source§

impl Compatible<BigIntUnsigned> for IntUnsigned

Source§

impl Compatible<BigIntUnsigned> for MediumIntUnsigned

Source§

impl Compatible<BigIntUnsigned> for Placeholder

Source§

impl Compatible<BigIntUnsigned> for SmallIntUnsigned

Source§

impl Compatible<BigIntUnsigned> for TinyIntUnsigned

Source§

impl Compatible<BigIntUnsigned> for Year

Source§

impl Compatible<Binary> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Binary> for Bit

Source§

impl Compatible<Binary> for drizzle_types::mysql::types::Blob

Source§

impl Compatible<Binary> for LongBlob

Source§

impl Compatible<Binary> for MediumBlob

Source§

impl Compatible<Binary> for Placeholder

Source§

impl Compatible<Binary> for TinyBlob

Source§

impl Compatible<Binary> for Varbinary

Source§

impl Compatible<Bit> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Bit> for Binary

Source§

impl Compatible<Bit> for drizzle_types::mysql::types::Blob

Source§

impl Compatible<Bit> for LongBlob

Source§

impl Compatible<Bit> for MediumBlob

Source§

impl Compatible<Bit> for Placeholder

Source§

impl Compatible<Bit> for TinyBlob

Source§

impl Compatible<Bit> for Varbinary

Source§

impl Compatible<BitString> for drizzle_types::postgres::types::Any

Source§

impl Compatible<BitString> for Placeholder

Source§

impl Compatible<Blob> for drizzle_types::sqlite::types::Any

Source§

impl Compatible<Blob> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Blob> for Binary

Source§

impl Compatible<Blob> for Bit

Source§

impl Compatible<Blob> for LongBlob

Source§

impl Compatible<Blob> for MediumBlob

Source§

impl Compatible<Blob> for Placeholder

Source§

impl Compatible<Blob> for Placeholder

Source§

impl Compatible<Blob> for drizzle_types::sqlite::types::Text

Source§

impl Compatible<Blob> for TinyBlob

Source§

impl Compatible<Blob> for Varbinary

Source§

impl Compatible<Boolean> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Boolean> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Boolean> for Placeholder

Source§

impl Compatible<Boolean> for Placeholder

Source§

impl Compatible<Bytea> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Bytea> for Placeholder

Source§

impl Compatible<Char> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Char> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Char> for drizzle_types::postgres::types::Enum

Source§

impl Compatible<Char> for drizzle_types::mysql::types::Enum

Source§

impl Compatible<Char> for LongText

Source§

impl Compatible<Char> for MediumText

Source§

impl Compatible<Char> for Placeholder

Source§

impl Compatible<Char> for Placeholder

Source§

impl Compatible<Char> for Set

Source§

impl Compatible<Char> for drizzle_types::postgres::types::Text

Source§

impl Compatible<Char> for drizzle_types::mysql::types::Text

Source§

impl Compatible<Char> for TinyText

Source§

impl Compatible<Char> for drizzle_types::postgres::types::Varchar

Source§

impl Compatible<Char> for drizzle_types::mysql::types::Varchar

Source§

impl Compatible<Cidr> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Cidr> for Inet

Source§

impl Compatible<Cidr> for Placeholder

Source§

impl Compatible<Circle> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Circle> for Placeholder

Source§

impl Compatible<Date> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Date> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Date> for Placeholder

Source§

impl Compatible<Date> for Placeholder

Source§

impl Compatible<Date> for drizzle_types::postgres::types::Text

Source§

impl Compatible<DateTime> for drizzle_types::mysql::types::Any

Source§

impl Compatible<DateTime> for Placeholder

Source§

impl Compatible<DateTime> for drizzle_types::mysql::types::Timestamp

Source§

impl Compatible<Decimal> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Decimal> for BigInt

Source§

impl Compatible<Decimal> for BigIntUnsigned

Source§

impl Compatible<Decimal> for Double

Source§

impl Compatible<Decimal> for Float

Source§

impl Compatible<Decimal> for Int

Source§

impl Compatible<Decimal> for IntUnsigned

Source§

impl Compatible<Decimal> for MediumInt

Source§

impl Compatible<Decimal> for MediumIntUnsigned

Source§

impl Compatible<Decimal> for Placeholder

Source§

impl Compatible<Decimal> for SmallInt

Source§

impl Compatible<Decimal> for SmallIntUnsigned

Source§

impl Compatible<Decimal> for TinyInt

Source§

impl Compatible<Decimal> for TinyIntUnsigned

Source§

impl Compatible<Decimal> for Year

Source§

impl Compatible<Double> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Double> for BigInt

Source§

impl Compatible<Double> for BigIntUnsigned

Source§

impl Compatible<Double> for Decimal

Source§

impl Compatible<Double> for Float

Source§

impl Compatible<Double> for Int

Source§

impl Compatible<Double> for IntUnsigned

Source§

impl Compatible<Double> for MediumInt

Source§

impl Compatible<Double> for MediumIntUnsigned

Source§

impl Compatible<Double> for Placeholder

Source§

impl Compatible<Double> for SmallInt

Source§

impl Compatible<Double> for SmallIntUnsigned

Source§

impl Compatible<Double> for TinyInt

Source§

impl Compatible<Double> for TinyIntUnsigned

Source§

impl Compatible<Double> for Year

Source§

impl Compatible<Enum> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Enum> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Enum> for drizzle_types::postgres::types::Char

Source§

impl Compatible<Enum> for drizzle_types::mysql::types::Char

Source§

impl Compatible<Enum> for LongText

Source§

impl Compatible<Enum> for MediumText

Source§

impl Compatible<Enum> for Placeholder

Source§

impl Compatible<Enum> for Placeholder

Source§

impl Compatible<Enum> for drizzle_types::postgres::types::Text

Source§

impl Compatible<Enum> for drizzle_types::mysql::types::Text

Source§

impl Compatible<Enum> for TinyText

Source§

impl Compatible<Enum> for drizzle_types::postgres::types::Varchar

Source§

impl Compatible<Enum> for drizzle_types::mysql::types::Varchar

Source§

impl Compatible<Float4> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Float4> for Float8

Source§

impl Compatible<Float4> for Int2

Source§

impl Compatible<Float4> for Int4

Source§

impl Compatible<Float4> for Int8

Source§

impl Compatible<Float4> for drizzle_types::postgres::types::Numeric

Source§

impl Compatible<Float4> for Placeholder

Source§

impl Compatible<Float8> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Float8> for Float4

Source§

impl Compatible<Float8> for Int2

Source§

impl Compatible<Float8> for Int4

Source§

impl Compatible<Float8> for Int8

Source§

impl Compatible<Float8> for drizzle_types::postgres::types::Numeric

Source§

impl Compatible<Float8> for Placeholder

Source§

impl Compatible<Float> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Float> for BigInt

Source§

impl Compatible<Float> for BigIntUnsigned

Source§

impl Compatible<Float> for Decimal

Source§

impl Compatible<Float> for Double

Source§

impl Compatible<Float> for Int

Source§

impl Compatible<Float> for IntUnsigned

Source§

impl Compatible<Float> for MediumInt

Source§

impl Compatible<Float> for MediumIntUnsigned

Source§

impl Compatible<Float> for Placeholder

Source§

impl Compatible<Float> for SmallInt

Source§

impl Compatible<Float> for SmallIntUnsigned

Source§

impl Compatible<Float> for TinyInt

Source§

impl Compatible<Float> for TinyIntUnsigned

Source§

impl Compatible<Float> for Year

Source§

impl Compatible<Inet> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Inet> for Cidr

Source§

impl Compatible<Inet> for Placeholder

Source§

impl Compatible<Int2> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Int2> for Float4

Source§

impl Compatible<Int2> for Float8

Source§

impl Compatible<Int2> for Int4

Source§

impl Compatible<Int2> for Int8

Source§

impl Compatible<Int2> for drizzle_types::postgres::types::Numeric

Source§

impl Compatible<Int2> for Placeholder

Source§

impl Compatible<Int4> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Int4> for Float4

Source§

impl Compatible<Int4> for Float8

Source§

impl Compatible<Int4> for Int2

Source§

impl Compatible<Int4> for Int8

Source§

impl Compatible<Int4> for drizzle_types::postgres::types::Numeric

Source§

impl Compatible<Int4> for Placeholder

Source§

impl Compatible<Int8> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Int8> for Float4

Source§

impl Compatible<Int8> for Float8

Source§

impl Compatible<Int8> for Int2

Source§

impl Compatible<Int8> for Int4

Source§

impl Compatible<Int8> for drizzle_types::postgres::types::Numeric

Source§

impl Compatible<Int8> for Placeholder

Source§

impl Compatible<Int> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Int> for BigInt

Source§

impl Compatible<Int> for Decimal

Source§

impl Compatible<Int> for Double

Source§

impl Compatible<Int> for Float

Source§

impl Compatible<Int> for MediumInt

Source§

impl Compatible<Int> for Placeholder

Source§

impl Compatible<Int> for SmallInt

Source§

impl Compatible<Int> for TinyInt

Source§

impl Compatible<Int> for Year

Source§

impl Compatible<IntUnsigned> for drizzle_types::mysql::types::Any

Source§

impl Compatible<IntUnsigned> for BigIntUnsigned

Source§

impl Compatible<IntUnsigned> for Decimal

Source§

impl Compatible<IntUnsigned> for Double

Source§

impl Compatible<IntUnsigned> for Float

Source§

impl Compatible<IntUnsigned> for MediumIntUnsigned

Source§

impl Compatible<IntUnsigned> for Placeholder

Source§

impl Compatible<IntUnsigned> for SmallIntUnsigned

Source§

impl Compatible<IntUnsigned> for TinyIntUnsigned

Source§

impl Compatible<IntUnsigned> for Year

Source§

impl Compatible<Integer> for drizzle_types::sqlite::types::Any

Source§

impl Compatible<Integer> for drizzle_types::sqlite::types::Numeric

Source§

impl Compatible<Integer> for Placeholder

Source§

impl Compatible<Integer> for Real

Source§

impl Compatible<Interval> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Interval> for Placeholder

Source§

impl Compatible<Json> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Json> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Json> for Jsonb

Source§

impl Compatible<Json> for Placeholder

Source§

impl Compatible<Json> for Placeholder

Source§

impl Compatible<Jsonb> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Jsonb> for drizzle_types::postgres::types::Json

Source§

impl Compatible<Jsonb> for Placeholder

Source§

impl Compatible<Line> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Line> for Placeholder

Source§

impl Compatible<LineSegment> for drizzle_types::postgres::types::Any

Source§

impl Compatible<LineSegment> for Placeholder

Source§

impl Compatible<LineString> for drizzle_types::postgres::types::Any

Source§

impl Compatible<LineString> for Placeholder

Source§

impl Compatible<LongBlob> for drizzle_types::mysql::types::Any

Source§

impl Compatible<LongBlob> for Binary

Source§

impl Compatible<LongBlob> for Bit

Source§

impl Compatible<LongBlob> for drizzle_types::mysql::types::Blob

Source§

impl Compatible<LongBlob> for MediumBlob

Source§

impl Compatible<LongBlob> for Placeholder

Source§

impl Compatible<LongBlob> for TinyBlob

Source§

impl Compatible<LongBlob> for Varbinary

Source§

impl Compatible<LongText> for drizzle_types::mysql::types::Any

Source§

impl Compatible<LongText> for drizzle_types::mysql::types::Char

Source§

impl Compatible<LongText> for drizzle_types::mysql::types::Enum

Source§

impl Compatible<LongText> for MediumText

Source§

impl Compatible<LongText> for Placeholder

Source§

impl Compatible<LongText> for Set

Source§

impl Compatible<LongText> for drizzle_types::mysql::types::Text

Source§

impl Compatible<LongText> for TinyText

Source§

impl Compatible<LongText> for drizzle_types::mysql::types::Varchar

Source§

impl Compatible<MacAddr8> for drizzle_types::postgres::types::Any

Source§

impl Compatible<MacAddr8> for MacAddr

Source§

impl Compatible<MacAddr8> for Placeholder

Source§

impl Compatible<MacAddr> for drizzle_types::postgres::types::Any

Source§

impl Compatible<MacAddr> for MacAddr8

Source§

impl Compatible<MacAddr> for Placeholder

Source§

impl Compatible<MediumBlob> for drizzle_types::mysql::types::Any

Source§

impl Compatible<MediumBlob> for Binary

Source§

impl Compatible<MediumBlob> for Bit

Source§

impl Compatible<MediumBlob> for drizzle_types::mysql::types::Blob

Source§

impl Compatible<MediumBlob> for LongBlob

Source§

impl Compatible<MediumBlob> for Placeholder

Source§

impl Compatible<MediumBlob> for TinyBlob

Source§

impl Compatible<MediumBlob> for Varbinary

Source§

impl Compatible<MediumInt> for drizzle_types::mysql::types::Any

Source§

impl Compatible<MediumInt> for BigInt

Source§

impl Compatible<MediumInt> for Decimal

Source§

impl Compatible<MediumInt> for Double

Source§

impl Compatible<MediumInt> for Float

Source§

impl Compatible<MediumInt> for Int

Source§

impl Compatible<MediumInt> for Placeholder

Source§

impl Compatible<MediumInt> for SmallInt

Source§

impl Compatible<MediumInt> for TinyInt

Source§

impl Compatible<MediumInt> for Year

Source§

impl Compatible<MediumIntUnsigned> for drizzle_types::mysql::types::Any

Source§

impl Compatible<MediumIntUnsigned> for BigIntUnsigned

Source§

impl Compatible<MediumIntUnsigned> for Decimal

Source§

impl Compatible<MediumIntUnsigned> for Double

Source§

impl Compatible<MediumIntUnsigned> for Float

Source§

impl Compatible<MediumIntUnsigned> for IntUnsigned

Source§

impl Compatible<MediumIntUnsigned> for Placeholder

Source§

impl Compatible<MediumIntUnsigned> for SmallIntUnsigned

Source§

impl Compatible<MediumIntUnsigned> for TinyIntUnsigned

Source§

impl Compatible<MediumIntUnsigned> for Year

Source§

impl Compatible<MediumText> for drizzle_types::mysql::types::Any

Source§

impl Compatible<MediumText> for drizzle_types::mysql::types::Char

Source§

impl Compatible<MediumText> for drizzle_types::mysql::types::Enum

Source§

impl Compatible<MediumText> for LongText

Source§

impl Compatible<MediumText> for Placeholder

Source§

impl Compatible<MediumText> for Set

Source§

impl Compatible<MediumText> for drizzle_types::mysql::types::Text

Source§

impl Compatible<MediumText> for TinyText

Source§

impl Compatible<MediumText> for drizzle_types::mysql::types::Varchar

Source§

impl Compatible<Numeric> for drizzle_types::sqlite::types::Any

Source§

impl Compatible<Numeric> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Numeric> for Float4

Source§

impl Compatible<Numeric> for Float8

Source§

impl Compatible<Numeric> for Int2

Source§

impl Compatible<Numeric> for Int4

Source§

impl Compatible<Numeric> for Int8

Source§

impl Compatible<Numeric> for Integer

Source§

impl Compatible<Numeric> for Placeholder

Source§

impl Compatible<Numeric> for Placeholder

Source§

impl Compatible<Numeric> for Real

Source§

impl Compatible<Placeholder> for drizzle_types::sqlite::types::Any

Source§

impl Compatible<Placeholder> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Placeholder> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Placeholder> for BigInt

Source§

impl Compatible<Placeholder> for BigIntUnsigned

Source§

impl Compatible<Placeholder> for Binary

Source§

impl Compatible<Placeholder> for Bit

Source§

impl Compatible<Placeholder> for BitString

Source§

impl Compatible<Placeholder> for drizzle_types::sqlite::types::Blob

Source§

impl Compatible<Placeholder> for drizzle_types::mysql::types::Blob

Source§

impl Compatible<Placeholder> for drizzle_types::postgres::types::Boolean

Source§

impl Compatible<Placeholder> for drizzle_types::mysql::types::Boolean

Source§

impl Compatible<Placeholder> for Bytea

Source§

impl Compatible<Placeholder> for drizzle_types::postgres::types::Char

Source§

impl Compatible<Placeholder> for drizzle_types::mysql::types::Char

Source§

impl Compatible<Placeholder> for Cidr

Source§

impl Compatible<Placeholder> for Circle

Source§

impl Compatible<Placeholder> for drizzle_types::postgres::types::Date

Source§

impl Compatible<Placeholder> for drizzle_types::mysql::types::Date

Source§

impl Compatible<Placeholder> for DateTime

Source§

impl Compatible<Placeholder> for Decimal

Source§

impl Compatible<Placeholder> for Double

Source§

impl Compatible<Placeholder> for drizzle_types::postgres::types::Enum

Source§

impl Compatible<Placeholder> for drizzle_types::mysql::types::Enum

Source§

impl Compatible<Placeholder> for Float

Source§

impl Compatible<Placeholder> for Float4

Source§

impl Compatible<Placeholder> for Float8

Source§

impl Compatible<Placeholder> for Inet

Source§

impl Compatible<Placeholder> for Int

Source§

impl Compatible<Placeholder> for Int2

Source§

impl Compatible<Placeholder> for Int4

Source§

impl Compatible<Placeholder> for Int8

Source§

impl Compatible<Placeholder> for IntUnsigned

Source§

impl Compatible<Placeholder> for Integer

Source§

impl Compatible<Placeholder> for Interval

Source§

impl Compatible<Placeholder> for drizzle_types::postgres::types::Json

Source§

impl Compatible<Placeholder> for drizzle_types::mysql::types::Json

Source§

impl Compatible<Placeholder> for Jsonb

Source§

impl Compatible<Placeholder> for Line

Source§

impl Compatible<Placeholder> for LineSegment

Source§

impl Compatible<Placeholder> for LineString

Source§

impl Compatible<Placeholder> for LongBlob

Source§

impl Compatible<Placeholder> for LongText

Source§

impl Compatible<Placeholder> for MacAddr

Source§

impl Compatible<Placeholder> for MacAddr8

Source§

impl Compatible<Placeholder> for MediumBlob

Source§

impl Compatible<Placeholder> for MediumInt

Source§

impl Compatible<Placeholder> for MediumIntUnsigned

Source§

impl Compatible<Placeholder> for MediumText

Source§

impl Compatible<Placeholder> for drizzle_types::sqlite::types::Numeric

Source§

impl Compatible<Placeholder> for drizzle_types::postgres::types::Numeric

Source§

impl Compatible<Placeholder> for Point

Source§

impl Compatible<Placeholder> for Polygon

Source§

impl Compatible<Placeholder> for Real

Source§

impl Compatible<Placeholder> for Rect

Source§

impl Compatible<Placeholder> for Set

Source§

impl Compatible<Placeholder> for SmallInt

Source§

impl Compatible<Placeholder> for SmallIntUnsigned

Source§

impl Compatible<Placeholder> for drizzle_types::sqlite::types::Text

Source§

impl Compatible<Placeholder> for drizzle_types::postgres::types::Text

Source§

impl Compatible<Placeholder> for drizzle_types::mysql::types::Text

Source§

impl Compatible<Placeholder> for drizzle_types::postgres::types::Time

Source§

impl Compatible<Placeholder> for drizzle_types::mysql::types::Time

Source§

impl Compatible<Placeholder> for drizzle_types::postgres::types::Timestamp

Source§

impl Compatible<Placeholder> for drizzle_types::mysql::types::Timestamp

Source§

impl Compatible<Placeholder> for Timestamptz

Source§

impl Compatible<Placeholder> for Timetz

Source§

impl Compatible<Placeholder> for TinyBlob

Source§

impl Compatible<Placeholder> for TinyInt

Source§

impl Compatible<Placeholder> for TinyIntUnsigned

Source§

impl Compatible<Placeholder> for TinyText

Source§

impl Compatible<Placeholder> for Uuid

Source§

impl Compatible<Placeholder> for Varbinary

Source§

impl Compatible<Placeholder> for drizzle_types::postgres::types::Varchar

Source§

impl Compatible<Placeholder> for drizzle_types::mysql::types::Varchar

Source§

impl Compatible<Placeholder> for Year

Source§

impl Compatible<Point> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Point> for Placeholder

Source§

impl Compatible<Polygon> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Polygon> for Placeholder

Source§

impl Compatible<Real> for drizzle_types::sqlite::types::Any

Source§

impl Compatible<Real> for Integer

Source§

impl Compatible<Real> for drizzle_types::sqlite::types::Numeric

Source§

impl Compatible<Real> for Placeholder

Source§

impl Compatible<Rect> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Rect> for Placeholder

Source§

impl Compatible<Set> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Set> for drizzle_types::mysql::types::Char

Source§

impl Compatible<Set> for LongText

Source§

impl Compatible<Set> for MediumText

Source§

impl Compatible<Set> for Placeholder

Source§

impl Compatible<Set> for drizzle_types::mysql::types::Text

Source§

impl Compatible<Set> for TinyText

Source§

impl Compatible<Set> for drizzle_types::mysql::types::Varchar

Source§

impl Compatible<SmallInt> for drizzle_types::mysql::types::Any

Source§

impl Compatible<SmallInt> for BigInt

Source§

impl Compatible<SmallInt> for Decimal

Source§

impl Compatible<SmallInt> for Double

Source§

impl Compatible<SmallInt> for Float

Source§

impl Compatible<SmallInt> for Int

Source§

impl Compatible<SmallInt> for MediumInt

Source§

impl Compatible<SmallInt> for Placeholder

Source§

impl Compatible<SmallInt> for TinyInt

Source§

impl Compatible<SmallInt> for Year

Source§

impl Compatible<SmallIntUnsigned> for drizzle_types::mysql::types::Any

Source§

impl Compatible<SmallIntUnsigned> for BigIntUnsigned

Source§

impl Compatible<SmallIntUnsigned> for Decimal

Source§

impl Compatible<SmallIntUnsigned> for Double

Source§

impl Compatible<SmallIntUnsigned> for Float

Source§

impl Compatible<SmallIntUnsigned> for IntUnsigned

Source§

impl Compatible<SmallIntUnsigned> for MediumIntUnsigned

Source§

impl Compatible<SmallIntUnsigned> for Placeholder

Source§

impl Compatible<SmallIntUnsigned> for TinyIntUnsigned

Source§

impl Compatible<SmallIntUnsigned> for Year

Source§

impl Compatible<Text> for drizzle_types::sqlite::types::Any

Source§

impl Compatible<Text> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Text> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Text> for drizzle_types::sqlite::types::Blob

Source§

impl Compatible<Text> for drizzle_types::postgres::types::Char

Source§

impl Compatible<Text> for drizzle_types::mysql::types::Char

Source§

impl Compatible<Text> for drizzle_types::postgres::types::Date

Source§

impl Compatible<Text> for drizzle_types::postgres::types::Enum

Source§

impl Compatible<Text> for drizzle_types::mysql::types::Enum

Source§

impl Compatible<Text> for LongText

Source§

impl Compatible<Text> for MediumText

Source§

impl Compatible<Text> for Placeholder

Source§

impl Compatible<Text> for Placeholder

Source§

impl Compatible<Text> for Placeholder

Source§

impl Compatible<Text> for Set

Source§

impl Compatible<Text> for drizzle_types::postgres::types::Time

Source§

impl Compatible<Text> for drizzle_types::postgres::types::Timestamp

Source§

impl Compatible<Text> for Timestamptz

Source§

impl Compatible<Text> for TinyText

Source§

impl Compatible<Text> for drizzle_types::postgres::types::Varchar

Source§

impl Compatible<Text> for drizzle_types::mysql::types::Varchar

Source§

impl Compatible<Time> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Time> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Time> for Placeholder

Source§

impl Compatible<Time> for Placeholder

Source§

impl Compatible<Time> for drizzle_types::postgres::types::Text

Source§

impl Compatible<Time> for Timetz

Source§

impl Compatible<Timestamp> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Timestamp> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Timestamp> for DateTime

Source§

impl Compatible<Timestamp> for Placeholder

Source§

impl Compatible<Timestamp> for Placeholder

Source§

impl Compatible<Timestamp> for drizzle_types::postgres::types::Text

Source§

impl Compatible<Timestamp> for Timestamptz

Source§

impl Compatible<Timestamptz> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Timestamptz> for Placeholder

Source§

impl Compatible<Timestamptz> for drizzle_types::postgres::types::Text

Source§

impl Compatible<Timestamptz> for drizzle_types::postgres::types::Timestamp

Source§

impl Compatible<Timetz> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Timetz> for Placeholder

Source§

impl Compatible<Timetz> for drizzle_types::postgres::types::Time

Source§

impl Compatible<TinyBlob> for drizzle_types::mysql::types::Any

Source§

impl Compatible<TinyBlob> for Binary

Source§

impl Compatible<TinyBlob> for Bit

Source§

impl Compatible<TinyBlob> for drizzle_types::mysql::types::Blob

Source§

impl Compatible<TinyBlob> for LongBlob

Source§

impl Compatible<TinyBlob> for MediumBlob

Source§

impl Compatible<TinyBlob> for Placeholder

Source§

impl Compatible<TinyBlob> for Varbinary

Source§

impl Compatible<TinyInt> for drizzle_types::mysql::types::Any

Source§

impl Compatible<TinyInt> for BigInt

Source§

impl Compatible<TinyInt> for Decimal

Source§

impl Compatible<TinyInt> for Double

Source§

impl Compatible<TinyInt> for Float

Source§

impl Compatible<TinyInt> for Int

Source§

impl Compatible<TinyInt> for MediumInt

Source§

impl Compatible<TinyInt> for Placeholder

Source§

impl Compatible<TinyInt> for SmallInt

Source§

impl Compatible<TinyInt> for Year

Source§

impl Compatible<TinyIntUnsigned> for drizzle_types::mysql::types::Any

Source§

impl Compatible<TinyIntUnsigned> for BigIntUnsigned

Source§

impl Compatible<TinyIntUnsigned> for Decimal

Source§

impl Compatible<TinyIntUnsigned> for Double

Source§

impl Compatible<TinyIntUnsigned> for Float

Source§

impl Compatible<TinyIntUnsigned> for IntUnsigned

Source§

impl Compatible<TinyIntUnsigned> for MediumIntUnsigned

Source§

impl Compatible<TinyIntUnsigned> for Placeholder

Source§

impl Compatible<TinyIntUnsigned> for SmallIntUnsigned

Source§

impl Compatible<TinyIntUnsigned> for Year

Source§

impl Compatible<TinyText> for drizzle_types::mysql::types::Any

Source§

impl Compatible<TinyText> for drizzle_types::mysql::types::Char

Source§

impl Compatible<TinyText> for drizzle_types::mysql::types::Enum

Source§

impl Compatible<TinyText> for LongText

Source§

impl Compatible<TinyText> for MediumText

Source§

impl Compatible<TinyText> for Placeholder

Source§

impl Compatible<TinyText> for Set

Source§

impl Compatible<TinyText> for drizzle_types::mysql::types::Text

Source§

impl Compatible<TinyText> for drizzle_types::mysql::types::Varchar

Source§

impl Compatible<Uuid> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Uuid> for Placeholder

Source§

impl Compatible<Varbinary> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Varbinary> for Binary

Source§

impl Compatible<Varbinary> for Bit

Source§

impl Compatible<Varbinary> for drizzle_types::mysql::types::Blob

Source§

impl Compatible<Varbinary> for LongBlob

Source§

impl Compatible<Varbinary> for MediumBlob

Source§

impl Compatible<Varbinary> for Placeholder

Source§

impl Compatible<Varbinary> for TinyBlob

Source§

impl Compatible<Varchar> for drizzle_types::postgres::types::Any

Source§

impl Compatible<Varchar> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Varchar> for drizzle_types::postgres::types::Char

Source§

impl Compatible<Varchar> for drizzle_types::mysql::types::Char

Source§

impl Compatible<Varchar> for drizzle_types::postgres::types::Enum

Source§

impl Compatible<Varchar> for drizzle_types::mysql::types::Enum

Source§

impl Compatible<Varchar> for LongText

Source§

impl Compatible<Varchar> for MediumText

Source§

impl Compatible<Varchar> for Placeholder

Source§

impl Compatible<Varchar> for Placeholder

Source§

impl Compatible<Varchar> for Set

Source§

impl Compatible<Varchar> for drizzle_types::postgres::types::Text

Source§

impl Compatible<Varchar> for drizzle_types::mysql::types::Text

Source§

impl Compatible<Varchar> for TinyText

Source§

impl Compatible<Year> for drizzle_types::mysql::types::Any

Source§

impl Compatible<Year> for BigInt

Source§

impl Compatible<Year> for BigIntUnsigned

Source§

impl Compatible<Year> for Decimal

Source§

impl Compatible<Year> for Double

Source§

impl Compatible<Year> for Float

Source§

impl Compatible<Year> for Int

Source§

impl Compatible<Year> for IntUnsigned

Source§

impl Compatible<Year> for MediumInt

Source§

impl Compatible<Year> for MediumIntUnsigned

Source§

impl Compatible<Year> for Placeholder

Source§

impl Compatible<Year> for SmallInt

Source§

impl Compatible<Year> for SmallIntUnsigned

Source§

impl Compatible<Year> for TinyInt

Source§

impl Compatible<Year> for TinyIntUnsigned

Source§

impl<T: DataType> Compatible for Array<T>