[][src]Struct odbc_api::buffers::TextRowSet

pub struct TextRowSet { /* fields omitted */ }

This row set binds a string buffer to each column, which is large enough to hold the maximum length string representation for each element in the row set at once.

Implementations

impl TextRowSet[src]

pub fn new(
    batch_size: UInteger,
    cursor: &Cursor<'_>
) -> Result<TextRowSet, Error>
[src]

Use cursor to query the display size for each column of the row set and allocates the buffers accordingly.

pub fn at(&self, col_index: usize, row_index: usize) -> Option<&[u8]>[src]

Access the element at the specified position in the row set.

pub fn at_as_str(
    &self,
    col_index: usize,
    row_index: usize
) -> Result<Option<&str>, Utf8Error>
[src]

Access the element at the specified position in the row set.

pub fn num_cols(&self) -> usize[src]

Return the number of columns in the row set.

pub fn num_rows(&self) -> usize[src]

Return the number of rows in the row set.

Trait Implementations

impl RowSetBuffer for TextRowSet[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.