pub enum ColumnType {
Int,
UInt,
Long,
ULong,
Double,
String,
Bool,
}Expand description
Typed representation of a column type.
Variants§
Int
A column of signed integers (i32).
UInt
A column of unsigned integers (u32).
Long
A column of signed integers (i64).
ULong
A column of unsigned integers (u64).
Double
A column of floating-point values (f64).
String
A column of UTF-8 encoded strings.
Bool
A column of boolean values.
Implementations§
Source§impl ColumnType
impl ColumnType
Sourcepub fn type_from_str(s: &str) -> Option<Self>
pub fn type_from_str(s: &str) -> Option<Self>
Attempts to build a ColumnType from the identifier stored in CCDB.
Trait Implementations§
Source§impl Clone for ColumnType
impl Clone for ColumnType
Source§fn clone(&self) -> ColumnType
fn clone(&self) -> ColumnType
Returns a duplicate 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 Debug for ColumnType
impl Debug for ColumnType
Source§impl Default for ColumnType
impl Default for ColumnType
Source§fn default() -> ColumnType
fn default() -> ColumnType
Returns the “default value” for a type. Read more
Source§impl Display for ColumnType
impl Display for ColumnType
impl Copy for ColumnType
Auto Trait Implementations§
impl Freeze for ColumnType
impl RefUnwindSafe for ColumnType
impl Send for ColumnType
impl Sync for ColumnType
impl Unpin for ColumnType
impl UnwindSafe for ColumnType
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