pub enum DataType {
Any,
Text,
Integer,
Float,
Boolean,
Date,
Time,
DateTime,
Undefined,
Null,
}
Variants§
Implementations§
source§impl DataType
impl DataType
pub fn is_type(&self, data_type: DataType) -> bool
pub fn is_int(&self) -> bool
pub fn is_float(&self) -> bool
pub fn is_number(&self) -> bool
pub fn is_text(&self) -> bool
pub fn is_time(&self) -> bool
pub fn is_date(&self) -> bool
pub fn is_datetime(&self) -> bool
pub fn literal(&self) -> &'static str
Trait Implementations§
source§impl PartialEq for DataType
impl PartialEq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
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