pub enum DataType {
}
Expand description
Represent the data types for values to be used in type checker
Variants§
Any
Represent general type so can be equal to any other type
Text
Represent String Type
Integer
Represent Integer 64 bit type
Float
Represent Float 64 bit type
Boolean
Represent Boolean (true | false) type
Date
Represent Date type
Time
Represent Time type
DateTime
Represent Date with Time type
Undefined
Represent Undefined
value
Null
Represent NULL
value
Variant(Vec<DataType>)
Represent a set of valid variant of types
Optional(Box<DataType>)
Represent an optional type so it can passed or not, must be last parameter
Varargs(Box<DataType>)
Represent variable arguments so can pass 0 or more value with spastic type, must be last parameter
Implementations§
source§impl DataType
impl DataType
pub fn is_any(&self) -> bool
pub fn is_bool(&self) -> 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 is_null(&self) -> bool
pub fn is_undefined(&self) -> bool
pub fn is_variant(&self) -> bool
pub fn is_optional(&self) -> bool
pub fn is_varargs(&self) -> bool
Trait Implementations§
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