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
Dynamic(fn(_: &[DataType]) -> DataType)
Represent dynamic type that calculated depending on other types (for example depending on Parameters) For now the main use case is to use it to calculate return type of function that has many variants