pub struct PgRange<T> {
    pub start: Bound<T>,
    pub end: Bound<T>,
}Fields§
§start: Bound<T>§end: Bound<T>Trait Implementations§
Source§impl<'r, T> Decode<'r, Postgres> for PgRange<T>
 
impl<'r, T> Decode<'r, Postgres> for PgRange<T>
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'q, T> Encode<'q, Postgres> for PgRange<T>
 
impl<'q, T> Encode<'q, Postgres> for PgRange<T>
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
    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>) -> Self
 
fn from(v: RangeInclusive<T>) -> Self
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>) -> Self
 
fn from(v: RangeToInclusive<T>) -> Self
Converts to this type from the input type.
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 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: Copy> Copy for PgRange<T>
impl<T: Eq> Eq for PgRange<T>
impl<T> StructuralPartialEq for PgRange<T>
Auto Trait Implementations§
impl<T> Freeze for PgRange<T>where
    T: Freeze,
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<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<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
 
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more