pub enum TypeCoercionClass {
Text = 0,
Numeric = 1,
Timelike = 2,
}Expand description
Type coercion class for determining result types in binary operations. Higher-priority classes win during coercion.
Variants§
Text = 0
Text types (CHAR, VARCHAR, TEXT)
Numeric = 1
Numeric types (INT, FLOAT, DECIMAL, etc.)
Timelike = 2
Time-like types (DATE, TIME, TIMESTAMP, INTERVAL)
Implementations§
Source§impl TypeCoercionClass
impl TypeCoercionClass
Sourcepub fn from_data_type(dt: &DataType) -> Option<Self>
pub fn from_data_type(dt: &DataType) -> Option<Self>
Get the coercion class for a data type
Trait Implementations§
Source§impl Clone for TypeCoercionClass
impl Clone for TypeCoercionClass
Source§fn clone(&self) -> TypeCoercionClass
fn clone(&self) -> TypeCoercionClass
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 TypeCoercionClass
impl Debug for TypeCoercionClass
Source§impl Hash for TypeCoercionClass
impl Hash for TypeCoercionClass
Source§impl Ord for TypeCoercionClass
impl Ord for TypeCoercionClass
Source§fn cmp(&self, other: &TypeCoercionClass) -> Ordering
fn cmp(&self, other: &TypeCoercionClass) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TypeCoercionClass
impl PartialEq for TypeCoercionClass
Source§impl PartialOrd for TypeCoercionClass
impl PartialOrd for TypeCoercionClass
impl Copy for TypeCoercionClass
impl Eq for TypeCoercionClass
impl StructuralPartialEq for TypeCoercionClass
Auto Trait Implementations§
impl Freeze for TypeCoercionClass
impl RefUnwindSafe for TypeCoercionClass
impl Send for TypeCoercionClass
impl Sync for TypeCoercionClass
impl Unpin for TypeCoercionClass
impl UnwindSafe for TypeCoercionClass
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