[−]Enum c3p0_pg::r2d2::postgres::types::Date
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> ToSql for Date<T> where
T: ToSql,
T: ToSql,
fn to_sql(
&self,
ty: &Type,
out: &mut Vec<u8>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync>>
&self,
ty: &Type,
out: &mut Vec<u8>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync>>
fn accepts(ty: &Type) -> bool
fn to_sql_checked(
&self,
ty: &Type,
out: &mut Vec<u8>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync>>
&self,
ty: &Type,
out: &mut Vec<u8>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync>>
impl<T> Copy for Date<T> where
T: Copy,
T: Copy,
impl<T> Clone for Date<T> where
T: Clone,
T: Clone,
fn clone(&self) -> Date<T>
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T> Debug for Date<T> where
T: Debug,
T: Debug,
impl<T> PartialEq<Date<T>> for Date<T> where
T: PartialEq<T>,
T: PartialEq<T>,
impl<T> FromSql for Date<T> where
T: FromSql,
T: FromSql,
fn from_sql(
ty: &Type,
raw: &[u8]
) -> Result<Date<T>, Box<dyn Error + 'static + Send + Sync>>
ty: &Type,
raw: &[u8]
) -> Result<Date<T>, Box<dyn Error + 'static + Send + Sync>>
fn accepts(ty: &Type) -> bool
fn from_sql_null(
ty: &Type
) -> Result<Self, Box<dyn Error + 'static + Send + Sync>>
ty: &Type
) -> Result<Self, Box<dyn Error + 'static + Send + Sync>>
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 + Send + Sync>>
ty: &Type,
raw: Option<&[u8]>
) -> Result<Self, Box<dyn Error + 'static + Send + Sync>>
A convenience function that delegates to from_sql
and from_sql_null
depending on the value of raw
. Read more
Auto Trait Implementations
impl<T> Sync for Date<T> where
T: Sync,
T: Sync,
impl<T> Send for Date<T> where
T: Send,
T: Send,
impl<T> Unpin for Date<T> where
T: Unpin,
T: Unpin,
impl<T> RefUnwindSafe for Date<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> UnwindSafe for Date<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self