pub struct Months(/* private fields */);
Expand description
A duration in calendar months, analog to chrono::Months
.
Unlike chrono::Months
, this type can represent a negative duration.
Implementations§
Trait Implementations§
Source§impl Add<Months> for NaiveDateTime
impl Add<Months> for NaiveDateTime
Source§impl<'r> Decode<'r, Exasol> for Months
impl<'r> Decode<'r, Exasol> for Months
Source§fn decode(value: ExaValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: ExaValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Encode<'_, Exasol> for Months
impl Encode<'_, Exasol> for Months
Source§fn encode_by_ref(&self, buf: &mut ExaBuffer) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut ExaBuffer) -> Result<IsNull, BoxDynError>
fn produces(&self) -> Option<ExaTypeInfo>
fn size_hint(&self) -> usize
Source§impl PartialOrd for Months
impl PartialOrd for Months
Source§impl Sub<Months> for NaiveDateTime
impl Sub<Months> for NaiveDateTime
Source§impl Type<Exasol> for Months
impl Type<Exasol> for Months
Source§fn type_info() -> ExaTypeInfo
fn type_info() -> ExaTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &ExaTypeInfo) -> bool
fn compatible(ty: &ExaTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
impl Copy for Months
impl Eq for Months
impl StructuralPartialEq for Months
Auto Trait Implementations§
impl Freeze for Months
impl RefUnwindSafe for Months
impl Send for Months
impl Sync for Months
impl Unpin for Months
impl UnwindSafe for Months
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> 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