[]Enum c3p0_pool_pg::r2d2::postgres::types::Date

pub enum Date<T> {
    PosInfinity,
    NegInfinity,
    Value(T),
}

A wrapper that can be used to represent infinity with Type::Date types.

Variants

PosInfinity

Represents infinity, a date that is later than all other dates.

NegInfinity

Represents -infinity, a date that is earlier than all other dates.

Value(T)

The wrapped date.

Trait Implementations

impl<T> Debug for Date<T> where
    T: Debug

impl<T> ToSql for Date<T> where
    T: ToSql

impl<T> Clone for Date<T> where
    T: Clone

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T> FromSql for Date<T> where
    T: FromSql

fn from_sql_null(
    ty: &Type
) -> Result<Self, Box<dyn Error + 'static + Sync + Send>>

Creates a new value of this type from a NULL SQL value. Read more

fn from_sql_nullable(
    ty: &Type,
    raw: Option<&[u8]>
) -> Result<Self, Box<dyn Error + 'static + Sync + Send>>

A convenience function that delegates to from_sql and from_sql_null depending on the value of raw. Read more

impl<T> Copy for Date<T> where
    T: Copy

impl<T> PartialEq<Date<T>> for Date<T> where
    T: PartialEq<T>, 

Auto Trait Implementations

impl<T> Unpin for Date<T> where
    T: Unpin

impl<T> Send for Date<T> where
    T: Send

impl<T> Sync for Date<T> where
    T: Sync

impl<T> RefUnwindSafe for Date<T> where
    T: RefUnwindSafe

impl<T> UnwindSafe for Date<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self