postgres
only.Fields
start: Bound<T>
end: Bound<T>
Trait Implementations
sourceimpl<'r, T> Decode<'r, Postgres> for PgRange<T> where
T: Type<Postgres> + for<'a> Decode<'a, Postgres>,
impl<'r, T> Decode<'r, Postgres> for PgRange<T> where
T: Type<Postgres> + for<'a> Decode<'a, Postgres>,
sourceimpl<'q, T> Encode<'q, Postgres> for PgRange<T> where
T: Encode<'q, Postgres>,
impl<'q, T> Encode<'q, Postgres> for PgRange<T> where
T: Encode<'q, Postgres>,
sourcefn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
sourceimpl<T> From<RangeInclusive<T>> for PgRange<T>
impl<T> From<RangeInclusive<T>> for PgRange<T>
sourcefn from(v: RangeInclusive<T>) -> PgRange<T>
fn from(v: RangeInclusive<T>) -> PgRange<T>
Converts to this type from the input type.
sourceimpl<T> From<RangeToInclusive<T>> for PgRange<T>
impl<T> From<RangeToInclusive<T>> for PgRange<T>
sourcefn from(v: RangeToInclusive<T>) -> PgRange<T>
fn from(v: RangeToInclusive<T>) -> PgRange<T>
Converts to this type from the input type.
sourceimpl PgHasArrayType for PgRange<Decimal>
impl PgHasArrayType for PgRange<Decimal>
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
sourceimpl<Tz> PgHasArrayType for PgRange<DateTime<Tz>> where
Tz: TimeZone,
impl<Tz> PgHasArrayType for PgRange<DateTime<Tz>> where
Tz: TimeZone,
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
sourceimpl PgHasArrayType for PgRange<BigDecimal>
impl PgHasArrayType for PgRange<BigDecimal>
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
sourceimpl PgHasArrayType for PgRange<NaiveDateTime>
impl PgHasArrayType for PgRange<NaiveDateTime>
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
sourceimpl PgHasArrayType for PgRange<PrimitiveDateTime>
impl PgHasArrayType for PgRange<PrimitiveDateTime>
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
sourceimpl PgHasArrayType for PgRange<i32>
impl PgHasArrayType for PgRange<i32>
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
sourceimpl PgHasArrayType for PgRange<Date>
impl PgHasArrayType for PgRange<Date>
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
sourceimpl PgHasArrayType for PgRange<NaiveDate>
impl PgHasArrayType for PgRange<NaiveDate>
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
sourceimpl PgHasArrayType for PgRange<OffsetDateTime>
impl PgHasArrayType for PgRange<OffsetDateTime>
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
sourceimpl PgHasArrayType for PgRange<i64>
impl PgHasArrayType for PgRange<i64>
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
sourceimpl<T> RangeBounds<T> for PgRange<T>
impl<T> RangeBounds<T> for PgRange<T>
sourceimpl Type<Postgres> for PgRange<BigDecimal>
impl Type<Postgres> for PgRange<BigDecimal>
sourcefn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<Postgres> for PgRange<Date>
impl Type<Postgres> for PgRange<Date>
sourcefn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<Postgres> for PgRange<i64>
impl Type<Postgres> for PgRange<i64>
sourcefn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl<Tz> Type<Postgres> for PgRange<DateTime<Tz>> where
Tz: TimeZone,
impl<Tz> Type<Postgres> for PgRange<DateTime<Tz>> where
Tz: TimeZone,
sourcefn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<Postgres> for PgRange<i32>
impl Type<Postgres> for PgRange<i32>
sourcefn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<Postgres> for PgRange<Decimal>
impl Type<Postgres> for PgRange<Decimal>
sourcefn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<Postgres> for PgRange<PrimitiveDateTime>
impl Type<Postgres> for PgRange<PrimitiveDateTime>
sourcefn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<Postgres> for PgRange<OffsetDateTime>
impl Type<Postgres> for PgRange<OffsetDateTime>
sourcefn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<Postgres> for PgRange<NaiveDate>
impl Type<Postgres> for PgRange<NaiveDate>
sourcefn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<Postgres> for PgRange<NaiveDateTime>
impl Type<Postgres> for PgRange<NaiveDateTime>
sourcefn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcefn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
impl<T> Eq for PgRange<T> where
T: Eq,
impl<T> StructuralEq for PgRange<T>
impl<T> StructuralPartialEq for PgRange<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for PgRange<T> where
T: RefUnwindSafe,
impl<T> Send for PgRange<T> where
T: Send,
impl<T> Sync for PgRange<T> where
T: Sync,
impl<T> Unpin for PgRange<T> where
T: Unpin,
impl<T> UnwindSafe for PgRange<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more