pub struct PgRange<T> {
pub start: Bound<T>,
pub end: Bound<T>,
}
Available on crate feature
postgres
only.Fieldsยง
ยงstart: Bound<T>
ยงend: Bound<T>
Trait Implementationsยง
sourceยงimpl<'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>,
sourceยงimpl<'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>,
sourceยงfn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere Self: Sized,
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
sourceยงimpl<T> From<RangeInclusive<T>> for PgRange<T>
impl<T> From<RangeInclusive<T>> for PgRange<T>
sourceยงfn from(v: RangeInclusive<T>) -> PgRange<T>
fn from(v: RangeInclusive<T>) -> PgRange<T>
Converts to this type from the input type.
sourceยงimpl<T> From<RangeToInclusive<T>> for PgRange<T>
impl<T> From<RangeToInclusive<T>> for PgRange<T>
sourceยงfn from(v: RangeToInclusive<T>) -> PgRange<T>
fn from(v: RangeToInclusive<T>) -> PgRange<T>
Converts to this type from the input type.
sourceยงimpl<T> PartialEq<PgRange<T>> for PgRange<T>where
T: PartialEq<T>,
impl<T> PartialEq<PgRange<T>> for PgRange<T>where T: PartialEq<T>,
sourceยงimpl PgHasArrayType for PgRange<BigDecimal>
impl PgHasArrayType for PgRange<BigDecimal>
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
sourceยงimpl PgHasArrayType for PgRange<Date>
impl PgHasArrayType for PgRange<Date>
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
sourceยงimpl<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
sourceยงimpl PgHasArrayType for PgRange<Decimal>
impl PgHasArrayType for PgRange<Decimal>
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
sourceยงimpl PgHasArrayType for PgRange<NaiveDate>
impl PgHasArrayType for PgRange<NaiveDate>
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
sourceยงimpl PgHasArrayType for PgRange<NaiveDateTime>
impl PgHasArrayType for PgRange<NaiveDateTime>
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
sourceยงimpl PgHasArrayType for PgRange<OffsetDateTime>
impl PgHasArrayType for PgRange<OffsetDateTime>
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
sourceยงimpl PgHasArrayType for PgRange<PrimitiveDateTime>
impl PgHasArrayType for PgRange<PrimitiveDateTime>
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
sourceยงimpl PgHasArrayType for PgRange<i32>
impl PgHasArrayType for PgRange<i32>
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
sourceยงimpl PgHasArrayType for PgRange<i64>
impl PgHasArrayType for PgRange<i64>
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
sourceยงimpl<T> RangeBounds<T> for PgRange<T>
impl<T> RangeBounds<T> for PgRange<T>
1.35.0 ยท sourceยงfn contains<U>(&self, item: &U) -> boolwhere
T: PartialOrd<U>,
U: PartialOrd<T> + ?Sized,
fn contains<U>(&self, item: &U) -> boolwhere T: PartialOrd<U>, U: PartialOrd<T> + ?Sized,
sourceยงimpl Type<Postgres> for PgRange<BigDecimal>
impl Type<Postgres> for PgRange<BigDecimal>
sourceยงfn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourceยงfn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceยงimpl Type<Postgres> for PgRange<Date>
impl Type<Postgres> for PgRange<Date>
sourceยงfn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourceยงfn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceยงimpl<Tz> Type<Postgres> for PgRange<DateTime<Tz>>where
Tz: TimeZone,
impl<Tz> Type<Postgres> for PgRange<DateTime<Tz>>where Tz: TimeZone,
sourceยงfn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourceยงfn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceยงimpl Type<Postgres> for PgRange<Decimal>
impl Type<Postgres> for PgRange<Decimal>
sourceยงfn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourceยงfn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceยงimpl Type<Postgres> for PgRange<NaiveDate>
impl Type<Postgres> for PgRange<NaiveDate>
sourceยงfn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourceยงfn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceยงimpl Type<Postgres> for PgRange<NaiveDateTime>
impl Type<Postgres> for PgRange<NaiveDateTime>
sourceยงfn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourceยงfn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceยงimpl Type<Postgres> for PgRange<OffsetDateTime>
impl Type<Postgres> for PgRange<OffsetDateTime>
sourceยงfn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourceยงfn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceยงimpl Type<Postgres> for PgRange<PrimitiveDateTime>
impl Type<Postgres> for PgRange<PrimitiveDateTime>
sourceยงfn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourceยงfn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceยงimpl Type<Postgres> for PgRange<i32>
impl Type<Postgres> for PgRange<i32>
sourceยงfn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourceยงfn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceยงimpl Type<Postgres> for PgRange<i64>
impl Type<Postgres> for PgRange<i64>
sourceยงfn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourceยงfn 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ยง
sourceยงimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.