pub unsafe trait ColumnBuffer: CDataMut {
    type View<'a>
    where
        Self: 'a
; fn view(&self, valid_rows: usize) -> Self::View<'_>; fn fill_default(&mut self, from: usize, to: usize); fn capacity(&self) -> usize; }
Expand description

A buffer for a single column intended to be used together with ColumnarBuffer.

Safety

Views must not allow access to unintialized / invalid rows.

Required Associated Types

Immutable view on the column data. Used in safe abstractions. User must not be able to access uninitialized or invalid memory of the buffer through this interface.

Required Methods

Num rows may not exceed the actually amount of valid num_rows filled be the ODBC API. The column buffer does not know how many elements were in the last row group, and therefore can not guarantee the accessed element to be valid and in a defined state. It also can not panic on accessing an undefined element.

Fills the column with the default representation of values, between from and to index.

Current capacity of the column

Implementations on Foreign Types

Implementors