Skip to main content

RowReader

Struct RowReader 

Source
pub struct RowReader<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> RowReader<'a>

Source

pub fn new(values: &'a [SqlValue]) -> Self

Trait Implementations§

Source§

impl ColumnReader for RowReader<'_>

Source§

fn remaining(&self) -> usize

Source§

fn is_null_at(&self, ahead: usize) -> Result<bool>

Of the column ahead places past the next one, without reading it.
Source§

fn skip(&mut self) -> Result<()>

Source§

fn bool(&mut self) -> Result<bool>

Source§

fn int(&mut self) -> Result<i64>

Source§

fn float(&mut self) -> Result<f64>

Source§

fn text(&mut self) -> Result<&str>

Source§

fn bytes(&mut self) -> Result<&[u8]>

Source§

fn uuid(&mut self) -> Result<Uuid>

Source§

fn timestamp(&mut self) -> Result<Timestamp>

Source§

fn date(&mut self) -> Result<Date>

Source§

fn date_time(&mut self) -> Result<DateTime>

Source§

fn json(&mut self) -> Result<Value>

Source§

fn value(&mut self) -> Result<SqlValue>

Source§

fn is_null(&self) -> Result<bool>

Auto Trait Implementations§

§

impl<'a> Forget for RowReader<'a>

§

impl<'a> Freeze for RowReader<'a>

§

impl<'a> RefUnwindSafe for RowReader<'a>

§

impl<'a> Send for RowReader<'a>

§

impl<'a> Sync for RowReader<'a>

§

impl<'a> Unpin for RowReader<'a>

§

impl<'a> UnsafeUnpin for RowReader<'a>

§

impl<'a> UnwindSafe for RowReader<'a>

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.

Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.