pub struct ExaIntervalYearToMonth(pub i64);Expand description
A duration interval as a representation of the INTERVAL YEAR TO MONTH datatype.
The duration is expressed in months.
Tuple Fields§
§0: i64Trait Implementations§
Source§impl Clone for ExaIntervalYearToMonth
impl Clone for ExaIntervalYearToMonth
Source§fn clone(&self) -> ExaIntervalYearToMonth
fn clone(&self) -> ExaIntervalYearToMonth
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExaIntervalYearToMonth
impl Debug for ExaIntervalYearToMonth
Source§impl<'r> Decode<'r, Exasol> for ExaIntervalYearToMonth
impl<'r> Decode<'r, Exasol> for ExaIntervalYearToMonth
Source§fn decode(
value: ExaValueRef<'r>,
) -> Result<ExaIntervalYearToMonth, Box<dyn Error + Sync + Send>>
fn decode( value: ExaValueRef<'r>, ) -> Result<ExaIntervalYearToMonth, Box<dyn Error + Sync + Send>>
Decode a new value of this type using a raw value from the database.
Source§impl<'de> Deserialize<'de> for ExaIntervalYearToMonth
impl<'de> Deserialize<'de> for ExaIntervalYearToMonth
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ExaIntervalYearToMonth, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ExaIntervalYearToMonth, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ExaIntervalYearToMonth
impl Display for ExaIntervalYearToMonth
Source§impl Encode<'_, Exasol> for ExaIntervalYearToMonth
impl Encode<'_, Exasol> for ExaIntervalYearToMonth
Source§fn encode_by_ref(
&self,
buf: &mut ExaBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn encode_by_ref( &self, buf: &mut ExaBuffer, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn size_hint(&self) -> usize
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>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>
Source§impl Hash for ExaIntervalYearToMonth
impl Hash for ExaIntervalYearToMonth
Source§impl Ord for ExaIntervalYearToMonth
impl Ord for ExaIntervalYearToMonth
Source§fn cmp(&self, other: &ExaIntervalYearToMonth) -> Ordering
fn cmp(&self, other: &ExaIntervalYearToMonth) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ExaIntervalYearToMonth
impl PartialEq for ExaIntervalYearToMonth
Source§impl PartialOrd for ExaIntervalYearToMonth
impl PartialOrd for ExaIntervalYearToMonth
Source§impl Serialize for ExaIntervalYearToMonth
impl Serialize for ExaIntervalYearToMonth
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<Months> for ExaIntervalYearToMonth
impl TryFrom<Months> for ExaIntervalYearToMonth
Source§impl Type<Exasol> for ExaIntervalYearToMonth
impl Type<Exasol> for ExaIntervalYearToMonth
impl Copy for ExaIntervalYearToMonth
impl Eq for ExaIntervalYearToMonth
impl ExaHasArrayType for ExaIntervalYearToMonth
impl StructuralPartialEq for ExaIntervalYearToMonth
Auto Trait Implementations§
impl Freeze for ExaIntervalYearToMonth
impl RefUnwindSafe for ExaIntervalYearToMonth
impl Send for ExaIntervalYearToMonth
impl Sync for ExaIntervalYearToMonth
impl Unpin for ExaIntervalYearToMonth
impl UnwindSafe for ExaIntervalYearToMonth
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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