pub enum Column {
Int64(Int64Column),
Float64(Float64Column),
String(StringColumn),
Boolean(BooleanColumn),
}Expand description
Enum representing a column
Variants§
Implementations§
Source§impl Column
impl Column
Sourcepub fn column_type(&self) -> ColumnType
pub fn column_type(&self) -> ColumnType
Returns the type of the column
Sourcepub fn clone_column(&self) -> Self
pub fn clone_column(&self) -> Self
Clones the column
Sourcepub fn as_int64(&self) -> Option<&Int64Column>
pub fn as_int64(&self) -> Option<&Int64Column>
Casts to Int64Column
Sourcepub fn as_float64(&self) -> Option<&Float64Column>
pub fn as_float64(&self) -> Option<&Float64Column>
Casts to Float64Column
Sourcepub fn as_string(&self) -> Option<&StringColumn>
pub fn as_string(&self) -> Option<&StringColumn>
Casts to StringColumn
Sourcepub fn as_boolean(&self) -> Option<&BooleanColumn>
pub fn as_boolean(&self) -> Option<&BooleanColumn>
Casts to BooleanColumn
Trait Implementations§
Source§impl From<BooleanColumn> for Column
impl From<BooleanColumn> for Column
Source§fn from(col: BooleanColumn) -> Self
fn from(col: BooleanColumn) -> Self
Converts to this type from the input type.
Source§impl From<Float64Column> for Column
impl From<Float64Column> for Column
Source§fn from(col: Float64Column) -> Self
fn from(col: Float64Column) -> Self
Converts to this type from the input type.
Source§impl From<Int64Column> for Column
impl From<Int64Column> for Column
Source§fn from(col: Int64Column) -> Self
fn from(col: Int64Column) -> Self
Converts to this type from the input type.
Source§impl From<StringColumn> for Column
impl From<StringColumn> for Column
Source§fn from(col: StringColumn) -> Self
fn from(col: StringColumn) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
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§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