pub struct TimestampArray { /* private fields */ }Expand description
A timestamp64 array retaining its schema unit and timezone annotation.
Implementations§
Source§impl TimestampArray
impl TimestampArray
Sourcepub fn new(
values: Vec<i64>,
validity: Option<Vec<bool>>,
unit: TimeUnit,
timezone: TimeZone,
) -> Self
pub fn new( values: Vec<i64>, validity: Option<Vec<bool>>, unit: TimeUnit, timezone: TimeZone, ) -> Self
Construct a timestamp array retaining its schema metadata.
pub fn values(&self) -> &[i64]
pub fn validity(&self) -> Option<&[bool]>
pub fn unit(&self) -> TimeUnit
pub fn timezone(&self) -> &TimeZone
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_null(&self, index: usize) -> bool
Trait Implementations§
Source§impl Clone for TimestampArray
impl Clone for TimestampArray
Source§fn clone(&self) -> TimestampArray
fn clone(&self) -> TimestampArray
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TimestampArray
impl Debug for TimestampArray
impl Eq for TimestampArray
Source§impl PartialEq for TimestampArray
impl PartialEq for TimestampArray
impl StructuralPartialEq for TimestampArray
Auto Trait Implementations§
impl Freeze for TimestampArray
impl RefUnwindSafe for TimestampArray
impl Send for TimestampArray
impl Sync for TimestampArray
impl Unpin for TimestampArray
impl UnsafeUnpin for TimestampArray
impl UnwindSafe for TimestampArray
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