[][src]Enum 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<'a, T: FromSql<'a>> FromSql<'a> for Date<T>[src]

impl<T: ToSql> ToSql for Date<T>[src]

impl<T: Clone> Clone for Date<T>[src]

impl<T: Copy> Copy for Date<T>[src]

impl<T: PartialEq> PartialEq<Date<T>> for Date<T>[src]

impl<T: Debug> Debug for Date<T>[src]

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<T> FromSqlOwned for T where
    T: FromSql<'a>, 
[src]

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

impl<T> From<T> for 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> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<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