Struct taos_query::common::raw::views::SmallIntView
source · pub struct SmallIntView { /* private fields */ }
Implementations§
source§impl SmallIntView
impl SmallIntView
sourcepub fn as_raw_slice(&self) -> &[i16]
pub fn as_raw_slice(&self) -> &[i16]
Raw slice of target type.
sourcepub fn as_raw_ptr(&self) -> *const i16
pub fn as_raw_ptr(&self) -> *const i16
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<i16>
pub unsafe fn get_unchecked(&self, row: usize) -> Option<i16>
Get nullable value at row
index.
pub unsafe fn get_ref_unchecked(&self, row: usize) -> Option<*const i16>
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 SmallIntView
impl Clone for SmallIntView
source§fn clone(&self) -> SmallIntView
fn clone(&self) -> SmallIntView
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 moresource§impl Debug for SmallIntView
impl Debug for SmallIntView
source§impl<A: Into<Option<i16>>> FromIterator<A> for SmallIntView
impl<A: Into<Option<i16>>> FromIterator<A> for SmallIntView
source§fn from_iter<T: IntoIterator<Item = A>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = A>>(iter: T) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SmallIntView
impl Send for SmallIntView
impl Sync for SmallIntView
impl Unpin for SmallIntView
impl UnwindSafe for SmallIntView
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