Enum af_postgres::types::Date[][src]

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> Clone for Date<T> where
    T: Clone
[src]

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

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

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

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

impl<T> StructuralPartialEq for Date<T>[src]

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

Auto Trait Implementations

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

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

Blanket Implementations

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

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

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

impl<T> BorrowToSql for T where
    T: ToSql
[src]

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,