pub struct FloatView { /* private fields */ }

Implementations§

source§

impl FloatView

source

pub fn len(&self) -> usize

Rows

source

pub fn as_raw_slice(&self) -> &[f32]

Raw slice of target type.

source

pub fn as_raw_ptr(&self) -> *const f32

Raw pointer of the slice.

source

pub fn to_nulls_vec(&self) -> Vec<bool>

Build a nulls vector.

source

pub fn is_null_iter(&self) -> NullsIter<'_>

A iterator only decide if the value at some row index is NULL or not.

source

pub fn is_null(&self, row: usize) -> bool

Check if the value at row index is NULL or not.

source

pub unsafe fn is_null_unchecked(&self, row: usize) -> bool

Unsafe version for [methods.is_null]

source

pub fn get(&self, row: usize) -> Option<f32>

Get nullable value at row index.

source

pub unsafe fn get_unchecked(&self, row: usize) -> Option<f32>

Get nullable value at row index.

source

pub unsafe fn get_ref_unchecked(&self, row: usize) -> Option<*const f32>

source

pub unsafe fn get_value_unchecked(&self, row: usize) -> BorrowedValue<'_>

source

pub unsafe fn get_raw_value_unchecked( &self, row: usize ) -> (Ty, u32, *const c_void)

source

pub fn slice(&self, range: Range<usize>) -> Option<Self>

Create a slice of view.

source

pub fn iter(&self) -> FloatViewIter<'_>

A iterator to nullable values of current row.

source

pub fn to_vec(&self) -> Vec<Option<f32>>

Convert data to a vector of all nullable values.

source

pub fn concat(&self, rhs: &FloatView) -> FloatView

Trait Implementations§

source§

impl Add<&FloatView> for FloatView

§

type Output = FloatView

The resulting type after applying the + operator.
source§

fn add(self, rhs: &FloatView) -> Self::Output

Performs the + operation. Read more
source§

impl Add<FloatView> for &FloatView

§

type Output = FloatView

The resulting type after applying the + operator.
source§

fn add(self, rhs: FloatView) -> Self::Output

Performs the + operation. Read more
source§

impl Add for &FloatView

§

type Output = FloatView

The resulting type after applying the + operator.
source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
source§

impl Add for FloatView

§

type Output = FloatView

The resulting type after applying the + operator.
source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
source§

impl Clone for FloatView

source§

fn clone(&self) -> FloatView

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for FloatView

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<A: Into<Option<f32>>> FromIterator<A> for FloatView

source§

fn from_iter<T: IntoIterator<Item = A>>(iter: T) -> Self

Creates a value from an iterator. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.