Enum proof_of_sql::base::database::OwnedColumn
source · #[non_exhaustive]pub enum OwnedColumn<S: Scalar> {
Boolean(Vec<bool>),
SmallInt(Vec<i16>),
Int(Vec<i32>),
BigInt(Vec<i64>),
VarChar(Vec<String>),
Int128(Vec<i128>),
Decimal75(Precision, i8, Vec<S>),
Scalar(Vec<S>),
TimestampTZ(PoSQLTimeUnit, PoSQLTimeZone, Vec<i64>),
}
Expand description
Supported types for OwnedColumn
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Boolean(Vec<bool>)
Boolean columns
SmallInt(Vec<i16>)
i16 columns
Int(Vec<i32>)
i32 columns
BigInt(Vec<i64>)
i64 columns
VarChar(Vec<String>)
String columns
Int128(Vec<i128>)
i128 columns
Decimal75(Precision, i8, Vec<S>)
Decimal columns
Scalar(Vec<S>)
Scalar columns
TimestampTZ(PoSQLTimeUnit, PoSQLTimeZone, Vec<i64>)
Timestamp columns
Implementations§
source§impl<S: Scalar> OwnedColumn<S>
impl<S: Scalar> OwnedColumn<S>
sourcepub fn try_permute(
&self,
permutation: &Permutation,
) -> Result<Self, PermutationError>
pub fn try_permute( &self, permutation: &Permutation, ) -> Result<Self, PermutationError>
Returns the column with its entries permutated
sourcepub fn column_type(&self) -> ColumnType
pub fn column_type(&self) -> ColumnType
Returns the type of the column.
sourcepub fn try_from_scalars(
scalars: &[S],
column_type: ColumnType,
) -> OwnedColumnResult<Self>
pub fn try_from_scalars( scalars: &[S], column_type: ColumnType, ) -> OwnedColumnResult<Self>
Convert a slice of scalars to a vec of owned columns
sourcepub fn try_from_option_scalars(
option_scalars: &[Option<S>],
column_type: ColumnType,
) -> OwnedColumnResult<Self>
pub fn try_from_option_scalars( option_scalars: &[Option<S>], column_type: ColumnType, ) -> OwnedColumnResult<Self>
Convert a slice of option scalars to a vec of owned columns
source§impl<S: Scalar> OwnedColumn<S>
impl<S: Scalar> OwnedColumn<S>
sourcepub fn element_wise_not(&self) -> ColumnOperationResult<Self>
pub fn element_wise_not(&self) -> ColumnOperationResult<Self>
Element-wise NOT operation for a column
sourcepub fn element_wise_and(&self, rhs: &Self) -> ColumnOperationResult<Self>
pub fn element_wise_and(&self, rhs: &Self) -> ColumnOperationResult<Self>
Element-wise AND for two columns
sourcepub fn element_wise_or(&self, rhs: &Self) -> ColumnOperationResult<Self>
pub fn element_wise_or(&self, rhs: &Self) -> ColumnOperationResult<Self>
Element-wise OR for two columns
sourcepub fn element_wise_eq(&self, rhs: &Self) -> ColumnOperationResult<Self>
pub fn element_wise_eq(&self, rhs: &Self) -> ColumnOperationResult<Self>
Element-wise equality check for two columns
sourcepub fn element_wise_le(&self, rhs: &Self) -> ColumnOperationResult<Self>
pub fn element_wise_le(&self, rhs: &Self) -> ColumnOperationResult<Self>
Element-wise <= check for two columns
sourcepub fn element_wise_ge(&self, rhs: &Self) -> ColumnOperationResult<Self>
pub fn element_wise_ge(&self, rhs: &Self) -> ColumnOperationResult<Self>
Element-wise >= check for two columns
Trait Implementations§
source§impl<S: Scalar> Add for OwnedColumn<S>
impl<S: Scalar> Add for OwnedColumn<S>
source§impl<S: Clone + Scalar> Clone for OwnedColumn<S>
impl<S: Clone + Scalar> Clone for OwnedColumn<S>
source§fn clone(&self) -> OwnedColumn<S>
fn clone(&self) -> OwnedColumn<S>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<S: Scalar> Div for OwnedColumn<S>
impl<S: Scalar> Div for OwnedColumn<S>
source§impl<S: Scalar> From<OwnedColumn<S>> for ArrayRef
impl<S: Scalar> From<OwnedColumn<S>> for ArrayRef
source§fn from(value: OwnedColumn<S>) -> Self
fn from(value: OwnedColumn<S>) -> Self
Converts to this type from the input type.
source§impl<S: Scalar> Mul for OwnedColumn<S>
impl<S: Scalar> Mul for OwnedColumn<S>
source§impl<S: Scalar> Sub for OwnedColumn<S>
impl<S: Scalar> Sub for OwnedColumn<S>
impl<S: Eq + Scalar> Eq for OwnedColumn<S>
impl<S: Scalar> StructuralPartialEq for OwnedColumn<S>
Auto Trait Implementations§
impl<S> Freeze for OwnedColumn<S>
impl<S> RefUnwindSafe for OwnedColumn<S>where
S: RefUnwindSafe,
impl<S> Send for OwnedColumn<S>
impl<S> Sync for OwnedColumn<S>
impl<S> Unpin for OwnedColumn<S>where
S: Unpin,
impl<S> UnwindSafe for OwnedColumn<S>where
S: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more