Struct arrow_array::types::IntervalYearMonthType
source · 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: 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
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