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 any- Twhich implements- ToSql<ST>.
§FromSql impls
- (Bound<T>, Bound<T>)for any- Twhich implements- FromSql<ST>.
Trait Implementations§
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<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§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