Struct odbc_api::buffers::BinColumnView
source · pub struct BinColumnView<'c> { /* private fields */ }
Implementations§
source§impl<'c> BinColumnView<'c>
impl<'c> BinColumnView<'c>
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
True if, and only if there are no valid rows in the column buffer.
sourcepub fn get(&self, index: usize) -> Option<&'c [u8]>
pub fn get(&self, index: usize) -> Option<&'c [u8]>
Slice of text at the specified row index without terminating zero.
sourcepub fn iter(&self) -> BinColumnIt<'c> ⓘ
pub fn iter(&self) -> BinColumnIt<'c> ⓘ
Iterator over the valid elements of the text buffer
sourcepub fn has_truncated_values(&self) -> bool
pub fn has_truncated_values(&self) -> bool
true
if any value is truncated in the range [0, num_rows).
After fetching data we may want to know if any value has been truncated due to the buffer not being able to hold elements of that size. This method checks the indicator buffer element wise.
Trait Implementations§
source§impl<'c> Clone for BinColumnView<'c>
impl<'c> Clone for BinColumnView<'c>
source§fn clone(&self) -> BinColumnView<'c>
fn clone(&self) -> BinColumnView<'c>
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