Enum odbc_api::buffers::AnyColumnView[][src]

pub enum AnyColumnView<'a> {
    Text(TextColumnIt<'a>),
    Binary(BinColumnIt<'a>),
    Date(&'a [Date]),
    Time(&'a [Time]),
    Timestamp(&'a [Timestamp]),
    F64(&'a [f64]),
    F32(&'a [f32]),
    I8(&'a [i8]),
    I16(&'a [i16]),
    I32(&'a [i32]),
    I64(&'a [i64]),
    U8(&'a [u8]),
    Bit(&'a [Bit]),
    NullableDate(OptIt<'a, Date>),
    NullableTime(OptIt<'a, Time>),
    NullableTimestamp(OptIt<'a, Timestamp>),
    NullableF64(OptIt<'a, f64>),
    NullableF32(OptIt<'a, f32>),
    NullableI8(OptIt<'a, i8>),
    NullableI16(OptIt<'a, i16>),
    NullableI32(OptIt<'a, i32>),
    NullableI64(OptIt<'a, i64>),
    NullableU8(OptIt<'a, u8>),
    NullableBit(OptIt<'a, Bit>),
}

A borrowed view on the valid rows in a column of a crate::buffers::ColumnarRowSet.

For columns of fixed size types, which are guaranteed to not contain null, a direct access to the slice is offered. Buffers over nullable columns can be accessed via an iterator over options.

Variants

Text(TextColumnIt<'a>)

Since we currently always have an indicator buffer for the text length anyway, there is no NULL values are always represntable and there is no dedicated representation for none NULL values.

Binary(BinColumnIt<'a>)
Timestamp(&'a [Timestamp])
NullableDate(OptIt<'a, Date>)
NullableTime(OptIt<'a, Time>)
NullableTimestamp(OptIt<'a, Timestamp>)
NullableF64(OptIt<'a, f64>)
NullableF32(OptIt<'a, f32>)
NullableI8(OptIt<'a, i8>)
NullableI16(OptIt<'a, i16>)
NullableI32(OptIt<'a, i32>)
NullableI64(OptIt<'a, i64>)
NullableU8(OptIt<'a, u8>)
NullableBit(OptIt<'a, Bit>)

Trait Implementations

impl<'a> Debug for AnyColumnView<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for AnyColumnView<'a>

impl<'a> Send for AnyColumnView<'a>

impl<'a> Sync for AnyColumnView<'a>

impl<'a> Unpin for AnyColumnView<'a>

impl<'a> UnwindSafe for AnyColumnView<'a>

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.