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 column_type(&self) -> ColumnType
pub fn column_type(&self) -> ColumnType
Returns the type of the column.
Trait Implementations§
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> 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: PartialEq + Scalar> PartialEq for OwnedColumn<S>
impl<S: PartialEq + Scalar> PartialEq for OwnedColumn<S>
source§fn eq(&self, other: &OwnedColumn<S>) -> bool
fn eq(&self, other: &OwnedColumn<S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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