ColumnData

Enum ColumnData 

Source
pub enum ColumnData {
Show 28 variants Bool(BoolContainer), Float4(NumberContainer<f32>), Float8(NumberContainer<f64>), Int1(NumberContainer<i8>), Int2(NumberContainer<i16>), Int4(NumberContainer<i32>), Int8(NumberContainer<i64>), Int16(NumberContainer<i128>), Uint1(NumberContainer<u8>), Uint2(NumberContainer<u16>), Uint4(NumberContainer<u32>), Uint8(NumberContainer<u64>), Uint16(NumberContainer<u128>), Utf8 { container: Utf8Container, max_bytes: MaxBytes, }, Date(TemporalContainer<Date>), DateTime(TemporalContainer<DateTime>), Time(TemporalContainer<Time>), Duration(TemporalContainer<Duration>), RowNumber(RowNumberContainer), IdentityId(IdentityIdContainer), Uuid4(UuidContainer<Uuid4>), Uuid7(UuidContainer<Uuid7>), Blob { container: BlobContainer, max_bytes: MaxBytes, }, Int { container: NumberContainer<Int>, max_bytes: MaxBytes, }, Uint { container: NumberContainer<Uint>, max_bytes: MaxBytes, }, Decimal { container: NumberContainer<Decimal>, precision: Precision, scale: Scale, }, Any(AnyContainer), Undefined(UndefinedContainer),
}

Variants§

Implementations§

Source§

impl ColumnData

Source

pub fn extend(&mut self, other: ColumnData) -> Result<()>

Source§

impl ColumnData

Source

pub fn bool(data: impl IntoIterator<Item = bool>) -> Self

Source

pub fn bool_optional(data: impl IntoIterator<Item = Option<bool>>) -> Self

Source

pub fn bool_with_capacity(capacity: usize) -> Self

Source

pub fn bool_with_bitvec( data: impl IntoIterator<Item = bool>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn float4(data: impl IntoIterator<Item = f32>) -> Self

Source

pub fn float4_optional(data: impl IntoIterator<Item = Option<f32>>) -> Self

Source

pub fn float4_with_capacity(capacity: usize) -> Self

Source

pub fn float4_with_bitvec( data: impl IntoIterator<Item = f32>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn float8(data: impl IntoIterator<Item = f64>) -> Self

Source

pub fn float8_optional(data: impl IntoIterator<Item = Option<f64>>) -> Self

Source

pub fn float8_with_capacity(capacity: usize) -> Self

Source

pub fn float8_with_bitvec( data: impl IntoIterator<Item = f64>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn int1(data: impl IntoIterator<Item = i8>) -> Self

Source

pub fn int1_optional(data: impl IntoIterator<Item = Option<i8>>) -> Self

Source

pub fn int1_with_capacity(capacity: usize) -> Self

Source

pub fn int1_with_bitvec( data: impl IntoIterator<Item = i8>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn int2(data: impl IntoIterator<Item = i16>) -> Self

Source

pub fn int2_optional(data: impl IntoIterator<Item = Option<i16>>) -> Self

Source

pub fn int2_with_capacity(capacity: usize) -> Self

Source

pub fn int2_with_bitvec( data: impl IntoIterator<Item = i16>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn int4(data: impl IntoIterator<Item = i32>) -> Self

Source

pub fn int4_optional(data: impl IntoIterator<Item = Option<i32>>) -> Self

Source

pub fn int4_with_capacity(capacity: usize) -> Self

Source

pub fn int4_with_bitvec( data: impl IntoIterator<Item = i32>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn int8(data: impl IntoIterator<Item = i64>) -> Self

Source

pub fn int8_optional(data: impl IntoIterator<Item = Option<i64>>) -> Self

Source

pub fn int8_with_capacity(capacity: usize) -> Self

Source

pub fn int8_with_bitvec( data: impl IntoIterator<Item = i64>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn int16(data: impl IntoIterator<Item = i128>) -> Self

Source

pub fn int16_optional(data: impl IntoIterator<Item = Option<i128>>) -> Self

Source

pub fn int16_with_capacity(capacity: usize) -> Self

Source

pub fn int16_with_bitvec( data: impl IntoIterator<Item = i128>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn utf8(data: impl IntoIterator<Item = impl Into<String>>) -> Self

Source

pub fn utf8_optional(data: impl IntoIterator<Item = Option<String>>) -> Self

Source

pub fn utf8_with_capacity(capacity: usize) -> Self

Source

pub fn utf8_with_bitvec<'a>( data: impl IntoIterator<Item = impl Into<String>>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn uint1(data: impl IntoIterator<Item = u8>) -> Self

Source

pub fn uint1_optional(data: impl IntoIterator<Item = Option<u8>>) -> Self

Source

pub fn uint1_with_capacity(capacity: usize) -> Self

Source

pub fn uint1_with_bitvec( data: impl IntoIterator<Item = u8>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn uint2(data: impl IntoIterator<Item = u16>) -> Self

Source

pub fn uint2_optional(data: impl IntoIterator<Item = Option<u16>>) -> Self

Source

pub fn uint2_with_capacity(capacity: usize) -> Self

Source

pub fn uint2_with_bitvec( data: impl IntoIterator<Item = u16>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn uint4(data: impl IntoIterator<Item = u32>) -> Self

Source

pub fn uint4_optional(data: impl IntoIterator<Item = Option<u32>>) -> Self

Source

pub fn uint4_with_capacity(capacity: usize) -> Self

Source

pub fn uint4_with_bitvec( data: impl IntoIterator<Item = u32>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn uint8(data: impl IntoIterator<Item = u64>) -> Self

Source

pub fn uint8_optional(data: impl IntoIterator<Item = Option<u64>>) -> Self

Source

pub fn uint8_with_capacity(capacity: usize) -> Self

Source

pub fn uint8_with_bitvec( data: impl IntoIterator<Item = u64>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn uint16(data: impl IntoIterator<Item = u128>) -> Self

Source

pub fn uint16_optional(data: impl IntoIterator<Item = Option<u128>>) -> Self

Source

pub fn uint16_with_capacity(capacity: usize) -> Self

Source

pub fn uint16_with_bitvec( data: impl IntoIterator<Item = u128>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn date(data: impl IntoIterator<Item = Date>) -> Self

Source

pub fn date_optional(data: impl IntoIterator<Item = Option<Date>>) -> Self

Source

pub fn date_with_capacity(capacity: usize) -> Self

Source

pub fn date_with_bitvec( data: impl IntoIterator<Item = Date>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn datetime(data: impl IntoIterator<Item = DateTime>) -> Self

Source

pub fn datetime_optional( data: impl IntoIterator<Item = Option<DateTime>>, ) -> Self

Source

pub fn datetime_with_capacity(capacity: usize) -> Self

Source

pub fn datetime_with_bitvec( data: impl IntoIterator<Item = DateTime>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn time(data: impl IntoIterator<Item = Time>) -> Self

Source

pub fn time_optional(data: impl IntoIterator<Item = Option<Time>>) -> Self

Source

pub fn time_with_capacity(capacity: usize) -> Self

Source

pub fn time_with_bitvec( data: impl IntoIterator<Item = Time>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn duration(data: impl IntoIterator<Item = Duration>) -> Self

Source

pub fn duration_optional( data: impl IntoIterator<Item = Option<Duration>>, ) -> Self

Source

pub fn duration_with_capacity(capacity: usize) -> Self

Source

pub fn duration_with_bitvec( data: impl IntoIterator<Item = Duration>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn uuid4(data: impl IntoIterator<Item = Uuid4>) -> Self

Source

pub fn uuid4_optional(data: impl IntoIterator<Item = Option<Uuid4>>) -> Self

Source

pub fn uuid4_with_capacity(capacity: usize) -> Self

Source

pub fn uuid4_with_bitvec( data: impl IntoIterator<Item = Uuid4>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn uuid7(data: impl IntoIterator<Item = Uuid7>) -> Self

Source

pub fn uuid7_optional(data: impl IntoIterator<Item = Option<Uuid7>>) -> Self

Source

pub fn uuid7_with_capacity(capacity: usize) -> Self

Source

pub fn uuid7_with_bitvec( data: impl IntoIterator<Item = Uuid7>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn blob(data: impl IntoIterator<Item = Blob>) -> Self

Source

pub fn blob_optional(data: impl IntoIterator<Item = Option<Blob>>) -> Self

Source

pub fn blob_with_capacity(capacity: usize) -> Self

Source

pub fn blob_with_bitvec( data: impl IntoIterator<Item = Blob>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn row_number(row_numbers: impl IntoIterator<Item = RowNumber>) -> Self

Source

pub fn row_number_optional( row_numbers: impl IntoIterator<Item = Option<RowNumber>>, ) -> Self

Source

pub fn row_number_with_capacity(capacity: usize) -> Self

Source

pub fn row_number_with_bitvec( row_numbers: impl IntoIterator<Item = RowNumber>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn identity_id(identity_ids: impl IntoIterator<Item = IdentityId>) -> Self

Source

pub fn identity_id_optional( identity_ids: impl IntoIterator<Item = Option<IdentityId>>, ) -> Self

Source

pub fn identity_id_with_capacity(capacity: usize) -> Self

Source

pub fn identity_id_with_bitvec( identity_ids: impl IntoIterator<Item = IdentityId>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn int(data: impl IntoIterator<Item = Int>) -> Self

Source

pub fn int_optional(data: impl IntoIterator<Item = Option<Int>>) -> Self

Source

pub fn uint(data: impl IntoIterator<Item = Uint>) -> Self

Source

pub fn uint_optional(data: impl IntoIterator<Item = Option<Uint>>) -> Self

Source

pub fn int_with_capacity(capacity: usize) -> Self

Source

pub fn uint_with_capacity(capacity: usize) -> Self

Source

pub fn int_with_bitvec( data: impl IntoIterator<Item = Int>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn uint_with_bitvec( data: impl IntoIterator<Item = Uint>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn decimal(data: impl IntoIterator<Item = Decimal>) -> Self

Source

pub fn decimal_optional(data: impl IntoIterator<Item = Option<Decimal>>) -> Self

Source

pub fn decimal_with_capacity(capacity: usize) -> Self

Source

pub fn decimal_with_bitvec( data: impl IntoIterator<Item = Decimal>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn any(data: impl IntoIterator<Item = Box<Value>>) -> Self

Source

pub fn any_optional(data: impl IntoIterator<Item = Option<Box<Value>>>) -> Self

Source

pub fn any_with_capacity(capacity: usize) -> Self

Source

pub fn any_with_bitvec( data: impl IntoIterator<Item = Box<Value>>, bitvec: impl Into<BitVec>, ) -> Self

Source

pub fn undefined(len: usize) -> Self

Source§

impl ColumnData

Source

pub fn filter(&mut self, mask: &BitVec) -> Result<()>

Source§

impl ColumnData

Source

pub fn from_many(value: Value, row_count: usize) -> Self

Source§

impl ColumnData

Source

pub fn get_value(&self, index: usize) -> Value

Source§

impl ColumnData

Source

pub fn reorder(&mut self, indices: &[usize])

Source§

impl ColumnData

Source

pub fn as_slice<T>(&self) -> &[T]
where Self: AsSlice<T>,

Source§

impl ColumnData

Source

pub fn take(&self, num: usize) -> ColumnData

Source§

impl ColumnData

Source

pub fn get_type(&self) -> Type

Source

pub fn is_defined(&self, idx: usize) -> bool

Source

pub fn is_bool(&self) -> bool

Source

pub fn is_float(&self) -> bool

Source

pub fn is_utf8(&self) -> bool

Source

pub fn is_number(&self) -> bool

Source

pub fn is_text(&self) -> bool

Source

pub fn is_temporal(&self) -> bool

Source

pub fn is_uuid(&self) -> bool

Source§

impl ColumnData

Source

pub fn bitvec(&self) -> &BitVec

Source

pub fn undefined_count(&self) -> usize

Source§

impl ColumnData

Source

pub fn with_capacity(target: Type, capacity: usize) -> Self

Source

pub fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = Value> + 'a>

Source§

impl ColumnData

Source

pub fn len(&self) -> usize

Source

pub fn capacity(&self) -> usize

Source

pub fn as_string(&self, index: usize) -> String

Source§

impl ColumnData

Source

pub fn push_undefined(&mut self)

Source§

impl ColumnData

Source

pub fn push_value(&mut self, value: Value)

Source§

impl ColumnData

Source

pub fn push<T>(&mut self, value: T)
where Self: Push<T>, T: Debug,

Trait Implementations§

Source§

impl Clone for ColumnData

Source§

fn clone(&self) -> ColumnData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ColumnData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ColumnData

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<ColumnData> for FrameColumnData

Source§

fn from(value: ColumnData) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for ColumnData

Source§

fn from(value: Value) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for ColumnData

Source§

fn eq(&self, other: &ColumnData) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Push<&str> for ColumnData

Source§

fn push(&mut self, value: &str)

Source§

impl Push<Blob> for ColumnData

Source§

fn push(&mut self, value: Blob)

Source§

impl Push<Date> for ColumnData

Source§

fn push(&mut self, value: Date)

Source§

impl Push<DateTime> for ColumnData

Source§

fn push(&mut self, value: DateTime)

Source§

impl Push<Decimal> for ColumnData

Source§

fn push(&mut self, value: Decimal)

Source§

impl Push<Duration> for ColumnData

Source§

fn push(&mut self, value: Duration)

Source§

impl Push<Int> for ColumnData

Source§

fn push(&mut self, value: Int)

Source§

impl Push<String> for ColumnData

Source§

fn push(&mut self, value: String)

Source§

impl Push<Time> for ColumnData

Source§

fn push(&mut self, value: Time)

Source§

impl Push<Uint> for ColumnData

Source§

fn push(&mut self, value: Uint)

Source§

impl Push<Uuid4> for ColumnData

Source§

fn push(&mut self, value: Uuid4)

Source§

impl Push<Uuid7> for ColumnData

Source§

fn push(&mut self, value: Uuid7)

Source§

impl Push<bool> for ColumnData

Source§

fn push(&mut self, value: bool)

Source§

impl Push<f32> for ColumnData

Source§

fn push(&mut self, value: f32)

Source§

impl Push<f64> for ColumnData

Source§

fn push(&mut self, value: f64)

Source§

impl Push<i128> for ColumnData

Source§

fn push(&mut self, value: i128)

Source§

impl Push<i16> for ColumnData

Source§

fn push(&mut self, value: i16)

Source§

impl Push<i32> for ColumnData

Source§

fn push(&mut self, value: i32)

Source§

impl Push<i64> for ColumnData

Source§

fn push(&mut self, value: i64)

Source§

impl Push<i8> for ColumnData

Source§

fn push(&mut self, value: i8)

Source§

impl Push<u128> for ColumnData

Source§

fn push(&mut self, value: u128)

Source§

impl Push<u16> for ColumnData

Source§

fn push(&mut self, value: u16)

Source§

impl Push<u32> for ColumnData

Source§

fn push(&mut self, value: u32)

Source§

impl Push<u64> for ColumnData

Source§

fn push(&mut self, value: u64)

Source§

impl Push<u8> for ColumnData

Source§

fn push(&mut self, value: u8)

Source§

impl Serialize for ColumnData

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ColumnData

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,