Struct taos_query::common::raw::views::TimestampView
source · pub struct TimestampView { /* private fields */ }Implementations§
source§impl TimestampView
impl TimestampView
pub fn from_millis(values: Vec<impl Into<Option<i64>>>) -> Self
pub fn from_micros(values: Vec<impl Into<Option<i64>>>) -> Self
pub fn from_nanos(values: Vec<impl Into<Option<i64>>>) -> Self
pub fn from_timestamp(values: Vec<Timestamp>) -> Self
pub fn from_nullable_timestamp(values: Vec<Option<Timestamp>>) -> Self
sourcepub fn as_raw_slice(&self) -> &[i64]
pub fn as_raw_slice(&self) -> &[i64]
Raw slice of target type.
sourcepub fn as_raw_ptr(&self) -> *const i64
pub fn as_raw_ptr(&self) -> *const i64
Raw pointer of the slice.
sourcepub fn to_nulls_vec(&self) -> Vec<bool>
pub fn to_nulls_vec(&self) -> Vec<bool>
Build a nulls vector.
sourcepub fn is_null_iter(&self) -> NullsIter<'_>
pub fn is_null_iter(&self) -> NullsIter<'_>
A iterator only decide if the value at some row index is NULL or not.
sourcepub unsafe fn is_null_unchecked(&self, row: usize) -> bool
pub unsafe fn is_null_unchecked(&self, row: usize) -> bool
Unsafe version for [methods.is_null]
sourcepub unsafe fn get_unchecked(&self, row: usize) -> Option<Timestamp>
pub unsafe fn get_unchecked(&self, row: usize) -> Option<Timestamp>
Get nullable value at row index.
pub unsafe fn get_ref_unchecked(&self, row: usize) -> Option<*const i64>
pub unsafe fn get_value_unchecked(&self, row: usize) -> BorrowedValue<'_>
pub unsafe fn get_raw_value_unchecked( &self, row: usize ) -> (Ty, u32, *const c_void)
Trait Implementations§
source§impl Clone for TimestampView
impl Clone for TimestampView
source§fn clone(&self) -> TimestampView
fn clone(&self) -> TimestampView
Returns a copy 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 more