pub struct IntervalYearMonthType {}
Expand description
32-bit “calendar” interval type: the number of whole months.
Implementations§
Source§impl IntervalYearMonthType
impl IntervalYearMonthType
Sourcepub fn make_value(
years: i32,
months: i32,
) -> <IntervalYearMonthType as ArrowPrimitiveType>::Native
pub fn make_value( years: i32, months: i32, ) -> <IntervalYearMonthType as ArrowPrimitiveType>::Native
Creates a IntervalYearMonthType::Native
§Arguments
years
- The number of years (+/-) represented in this intervalmonths
- The number of months (+/-) represented in this interval
Sourcepub fn to_months(
i: <IntervalYearMonthType as ArrowPrimitiveType>::Native,
) -> i32
pub fn to_months( i: <IntervalYearMonthType as ArrowPrimitiveType>::Native, ) -> i32
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§
Source§impl ArrowPrimitiveType for IntervalYearMonthType
impl ArrowPrimitiveType for IntervalYearMonthType
Source§fn get_byte_width() -> usize
fn get_byte_width() -> usize
👎Deprecated since 52.0.0: Use ArrowNativeType::get_byte_width
Returns the byte width of this primitive type.
Source§fn default_value() -> Self::Native
fn default_value() -> Self::Native
Returns a default value of this primitive type. Read more
Source§impl Debug for IntervalYearMonthType
impl Debug for IntervalYearMonthType
impl PrimitiveTypeSealed for IntervalYearMonthType
Auto Trait Implementations§
impl Freeze for IntervalYearMonthType
impl RefUnwindSafe for IntervalYearMonthType
impl Send for IntervalYearMonthType
impl Sync for IntervalYearMonthType
impl Unpin for IntervalYearMonthType
impl UnwindSafe for IntervalYearMonthType
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