pub struct Duration<U: DurationUnitSpec>(/* private fields */);Expand description
Duration in the given unit.
Implementations§
Trait Implementations§
Source§impl<U: DurationUnitSpec> ArrowBinding for Duration<U>where
U::Arrow: ArrowPrimitiveType<Native = i64>,
impl<U: DurationUnitSpec> ArrowBinding for Duration<U>where
U::Arrow: ArrowPrimitiveType<Native = i64>,
Source§type Builder = PrimitiveBuilder<<U as DurationUnitSpec>::Arrow>
type Builder = PrimitiveBuilder<<U as DurationUnitSpec>::Arrow>
Concrete Arrow builder type used for this Rust type.
Source§type Array = PrimitiveArray<<U as DurationUnitSpec>::Arrow>
type Array = PrimitiveArray<<U as DurationUnitSpec>::Arrow>
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<U: DurationUnitSpec + 'static> ArrowBindingView for Duration<U>where
U::Arrow: ArrowPrimitiveType<Native = i64>,
Available on crate feature views only.
impl<U: DurationUnitSpec + 'static> ArrowBindingView for Duration<U>where
U::Arrow: ArrowPrimitiveType<Native = i64>,
Available on crate feature
views only.Source§impl<U: Ord + DurationUnitSpec> Ord for Duration<U>
impl<U: Ord + DurationUnitSpec> Ord for Duration<U>
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<U: PartialOrd + DurationUnitSpec> PartialOrd for Duration<U>
impl<U: PartialOrd + DurationUnitSpec> PartialOrd for Duration<U>
impl<U: Copy + DurationUnitSpec> Copy for Duration<U>
impl<U: Eq + DurationUnitSpec> Eq for Duration<U>
impl<U: DurationUnitSpec> StructuralPartialEq for Duration<U>
Auto Trait Implementations§
impl<U> Freeze for Duration<U>
impl<U> RefUnwindSafe for Duration<U>where
U: RefUnwindSafe,
impl<U> Send for Duration<U>where
U: Send,
impl<U> Sync for Duration<U>where
U: Sync,
impl<U> Unpin for Duration<U>where
U: Unpin,
impl<U> UnwindSafe for Duration<U>where
U: UnwindSafe,
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