pub struct IntervalYearMonth(/* private fields */);Expand description
Interval with unit YearMonth (i32 months since epoch).
Implementations§
Trait Implementations§
Source§impl ArrowBinding for IntervalYearMonth
impl ArrowBinding for IntervalYearMonth
Source§type Builder = PrimitiveBuilder<IntervalYearMonthType>
type Builder = PrimitiveBuilder<IntervalYearMonthType>
Concrete Arrow builder type used for this Rust type.
Source§type Array = PrimitiveArray<IntervalYearMonthType>
type Array = PrimitiveArray<IntervalYearMonthType>
Concrete Arrow array type produced by
finish.Source§fn new_builder(capacity: usize) -> Self::Builder
fn new_builder(capacity: usize) -> Self::Builder
Create a new builder with an optional capacity hint.
Source§fn append_value(b: &mut Self::Builder, v: &Self)
fn append_value(b: &mut Self::Builder, v: &Self)
Append a non-null value to the builder.
Source§fn append_null(b: &mut Self::Builder)
fn append_null(b: &mut Self::Builder)
Append a null to the builder.
Source§fn finish(b: Self::Builder) -> Self::Array
fn finish(b: Self::Builder) -> Self::Array
Finish the builder and produce a typed Arrow array.
Source§fn estimated_bytes_per_value() -> usize
fn estimated_bytes_per_value() -> usize
Estimated bytes per value for variable-length types (String, Binary, etc.).
Returns 0 for fixed-size types. Used to pre-allocate buffer space.
Source§impl ArrowBindingView for IntervalYearMonth
Available on crate feature views only.
impl ArrowBindingView for IntervalYearMonth
Available on crate feature
views only.Source§type Array = PrimitiveArray<IntervalYearMonthType>
type Array = PrimitiveArray<IntervalYearMonthType>
The Arrow array type this view reads from.
Source§type View<'a> = IntervalYearMonth
type View<'a> = IntervalYearMonth
The borrowed view type returned when accessing array elements.
For example:
&'a str for StringArray, i64 for Int64Array.Source§impl Clone for IntervalYearMonth
impl Clone for IntervalYearMonth
Source§fn clone(&self) -> IntervalYearMonth
fn clone(&self) -> IntervalYearMonth
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 IntervalYearMonth
impl Debug for IntervalYearMonth
Source§impl Hash for IntervalYearMonth
impl Hash for IntervalYearMonth
Source§impl Ord for IntervalYearMonth
impl Ord for IntervalYearMonth
Source§fn cmp(&self, other: &IntervalYearMonth) -> Ordering
fn cmp(&self, other: &IntervalYearMonth) -> 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 IntervalYearMonth
impl PartialEq for IntervalYearMonth
Source§impl PartialOrd for IntervalYearMonth
impl PartialOrd for IntervalYearMonth
impl Copy for IntervalYearMonth
impl Eq for IntervalYearMonth
impl StructuralPartialEq for IntervalYearMonth
Auto Trait Implementations§
impl Freeze for IntervalYearMonth
impl RefUnwindSafe for IntervalYearMonth
impl Send for IntervalYearMonth
impl Sync for IntervalYearMonth
impl Unpin for IntervalYearMonth
impl UnwindSafe for IntervalYearMonth
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