pub struct Range<ST: 'static>(/* private fields */);
Available on crate feature
postgres_backend
only.Expand description
The Range
SQL type.
This wraps another type to represent a SQL range of that type.
§ToSql
impls
(Bound<T>, Bound<T>)
for anyT
which implementsToSql<ST>
.
§FromSql
impls
(Bound<T>, Bound<T>)
for anyT
which implementsFromSql<ST>
.
Trait Implementations§
source§impl<'a, ST: 'static, T> AsExpression<Range<ST>> for &'a (Bound<T>, Bound<T>)
impl<'a, ST: 'static, T> AsExpression<Range<ST>> for &'a (Bound<T>, Bound<T>)
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<ST: 'static, T> AsExpression<Range<ST>> for (Bound<T>, Bound<T>)
impl<ST: 'static, T> AsExpression<Range<ST>> for (Bound<T>, Bound<T>)
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl HasSqlType<Range<BigInt>> for Pg
impl HasSqlType<Range<BigInt>> for Pg
source§fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
source§impl HasSqlType<Range<Date>> for Pg
impl HasSqlType<Range<Date>> for Pg
source§fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
source§impl HasSqlType<Range<Integer>> for Pg
impl HasSqlType<Range<Integer>> for Pg
source§fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
source§impl HasSqlType<Range<Numeric>> for Pg
impl HasSqlType<Range<Numeric>> for Pg
source§fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
source§impl HasSqlType<Range<Timestamp>> for Pg
impl HasSqlType<Range<Timestamp>> for Pg
source§fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
source§impl HasSqlType<Range<Timestamptz>> for Pg
impl HasSqlType<Range<Timestamptz>> for Pg
source§fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
source§impl<ST: 'static + QueryId> QueryId for Range<ST>
impl<ST: 'static + QueryId> QueryId for Range<ST>
impl<ST: Copy + 'static> Copy for Range<ST>
impl<ST: 'static> SingleValue for Range<ST>
Auto Trait Implementations§
impl<ST> Freeze for Range<ST>where
ST: Freeze,
impl<ST> RefUnwindSafe for Range<ST>where
ST: RefUnwindSafe,
impl<ST> Send for Range<ST>where
ST: Send,
impl<ST> Sync for Range<ST>where
ST: Sync,
impl<ST> Unpin for Range<ST>where
ST: Unpin,
impl<ST> UnwindSafe for Range<ST>where
ST: UnwindSafe,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<ST, U, DB> CompatibleType<U, DB> for ST
impl<ST, U, DB> CompatibleType<U, DB> for ST
source§impl<T> IntoNotNullable for T
impl<T> IntoNotNullable for T
source§type NotNullable = T
type NotNullable = T
The not nullable representation of this type. Read more