pub enum AnySlice<'a> {
Show 25 variants Text(TextColumnView<'a, u8>), WText(TextColumnView<'a, u16>), Binary(BinColumnView<'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(NullableSlice<'a, Date>), NullableTime(NullableSlice<'a, Time>), NullableTimestamp(NullableSlice<'a, Timestamp>), NullableF64(NullableSlice<'a, f64>), NullableF32(NullableSlice<'a, f32>), NullableI8(NullableSlice<'a, i8>), NullableI16(NullableSlice<'a, i16>), NullableI32(NullableSlice<'a, i32>), NullableI64(NullableSlice<'a, i64>), NullableU8(NullableSlice<'a, u8>), NullableBit(NullableSlice<'a, Bit>),
}
Expand description

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

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(TextColumnView<'a, u8>)

Nullable character data in the system encoding.

§

WText(TextColumnView<'a, u16>)

Nullable character data encoded in UTF-16.

§

Binary(BinColumnView<'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(NullableSlice<'a, Date>)

§

NullableTime(NullableSlice<'a, Time>)

§

NullableTimestamp(NullableSlice<'a, Timestamp>)

§

NullableF64(NullableSlice<'a, f64>)

§

NullableF32(NullableSlice<'a, f32>)

§

NullableI8(NullableSlice<'a, i8>)

§

NullableI16(NullableSlice<'a, i16>)

§

NullableI32(NullableSlice<'a, i32>)

§

NullableI64(NullableSlice<'a, i64>)

§

NullableU8(NullableSlice<'a, u8>)

§

NullableBit(NullableSlice<'a, Bit>)

Implementations§

This method is useful if you expect the variant to be AnyColumnView::Text. It allows you to unwrap the inner column view without explictly matching it.

This method is useful if you expect the variant to be AnyColumnView::WText. It allows you to unwrap the inner column view without explictly matching it.

This method is useful if you expect the variant to be AnyColumnView::Binary. It allows you to unwrap the inner column view without explictly matching it.

Extract the array type from an AnyColumnView.

Extract the typed nullable buffer from an AnyColumnView.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.