pub struct IntervalYearMonthType {}
Expand description

A “calendar” interval type in months.

Implementations§

Creates a IntervalYearMonthType::Native

Arguments
  • years - The number of years (+/-) represented in this interval
  • months - The number of months (+/-) represented in this interval

Turns a IntervalYearMonthType type into an i32 of months.

This operation is technically a no-op, it is included for comprehensiveness.

Arguments
  • i - The IntervalYearMonthType::Native to convert

Trait Implementations§

Corresponding Rust native type for the primitive type.
the corresponding Arrow data type of this primitive type.
Returns the byte width of this primitive type.
Returns a default value of this primitive type. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.