Skip to main content

BinaryColumn

Enum BinaryColumn 

Source
pub(crate) enum BinaryColumn<'a> {
    View(&'a BinaryViewArray),
    Other(&'a dyn Array),
}
Expand description

A binary-like column whose array type is resolved once, not on every row.

Variants§

§

View(&'a BinaryViewArray)

§

Other(&'a dyn Array)

Implementations§

Source§

impl<'a> BinaryColumn<'a>

Source

pub(crate) fn new(array: &'a dyn Array) -> Self

Source

pub(crate) fn value(&self, index: usize) -> Option<&'a [u8]>

The bytes of row index, or None if the row is null or the column is not binary-like.

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for BinaryColumn<'a>

§

impl<'a> !UnwindSafe for BinaryColumn<'a>

§

impl<'a> Forget for BinaryColumn<'a>

§

impl<'a> Freeze for BinaryColumn<'a>
where &'a GenericByteViewArray<BinaryViewType>: Freeze, &'a dyn Array: Freeze,

§

impl<'a> Move for BinaryColumn<'a>

§

impl<'a> Send for BinaryColumn<'a>
where &'a GenericByteViewArray<BinaryViewType>: Send, &'a dyn Array: Send,

§

impl<'a> Sync for BinaryColumn<'a>
where Arc<str>: Sync, Arc<Field>: Sync, Arc<[Arc<Field>]>: Sync, Arc<[(i8, Arc<Field>)]>: Sync, BoxRaw<DataType>: Sync, Buffer: Sync, Arc<[Buffer]>: Sync,

§

impl<'a> Unpin for BinaryColumn<'a>
where &'a GenericByteViewArray<BinaryViewType>: Unpin, &'a dyn Array: Unpin,

§

impl<'a> UnsafeUnpin for BinaryColumn<'a>
where &'a GenericByteViewArray<BinaryViewType>: UnsafeUnpin, &'a dyn Array: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Ungil for T
where T: Send,