DynCell

Enum DynCell 

Source
pub enum DynCell {
Show 17 variants Null, Bool(bool), I8(i8), I16(i16), I32(i32), I64(i64), U8(u8), U16(u16), U32(u32), U64(u64), F32(f32), F64(f64), Str(String), Bin(Vec<u8>), Struct(Vec<Option<DynCell>>), List(Vec<Option<DynCell>>), FixedSizeList(Vec<Option<DynCell>>),
}
Expand description

A dynamic cell to be appended into a dynamic column builder.

Variants§

§

Null

Append a null to the target column.

§

Bool(bool)

Boolean value for DataType::Boolean.

§

I8(i8)

8-bit signed integer for DataType::Int8.

§

I16(i16)

16-bit signed integer for DataType::Int16.

§

I32(i32)

32-bit signed integer for DataType::Int32.

§

I64(i64)

64-bit signed integer for DataType::Int64.

§

U8(u8)

8-bit unsigned integer for DataType::UInt8.

§

U16(u16)

16-bit unsigned integer for DataType::UInt16.

§

U32(u32)

32-bit unsigned integer for DataType::UInt32.

§

U64(u64)

64-bit unsigned integer for DataType::UInt64.

§

F32(f32)

32-bit floating point for DataType::Float32.

§

F64(f64)

64-bit floating point for DataType::Float64.

§

Str(String)

UTF-8 string for DataType::Utf8 or DataType::LargeUtf8 (and their dictionary forms).

§

Bin(Vec<u8>)

Arbitrary bytes for DataType::Binary, DataType::LargeBinary, or DataType::FixedSizeBinary(w) (length must equal w) and their dictionary forms.

§

Struct(Vec<Option<DynCell>>)

Struct cell with one entry per child field (same length as the struct’s fields). Each child may be None (null) or a nested DynCell matching the child’s type.

§

List(Vec<Option<DynCell>>)

Variable-size list (used for both List and LargeList); items can be null. The child element type must match the list’s item field.

§

FixedSizeList(Vec<Option<DynCell>>)

Fixed-size list; the number of items must match the list’s declared length. Each item may be None (null) or a nested DynCell matching the child type.

Implementations§

Source§

impl DynCell

Source

pub fn type_name(&self) -> &'static str

A short, human-readable type name for diagnostics.

Auto Trait Implementations§

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
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.

Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,