pub enum DataType {
Show 16 variants
Number,
Integer,
Real {
precision: Option<u8>,
},
Boolean,
Logical,
String {
width: Option<usize>,
fixed: bool,
},
Binary {
width: Option<usize>,
fixed: bool,
},
TypeRef {
name: String,
},
Array {
bound: Option<BoundSpec>,
optional: bool,
unique: bool,
base_type: Box<DataType>,
},
List {
bound: Option<BoundSpec>,
unique: bool,
base_type: Box<DataType>,
},
Bag {
bound: Option<BoundSpec>,
base_type: Box<DataType>,
},
Set {
bound: Option<BoundSpec>,
base_type: Box<DataType>,
},
Enum {
values: Vec<String>,
},
Select {
types: Vec<String>,
},
Generic {
type_label: Option<String>,
},
Aggregate {
type_label: Option<String>,
base_type: Box<DataType>,
},
}Variants§
Number
Integer
Real
Boolean
Logical
String
Binary
TypeRef
Array
List
Ordered elements
Bag
Unordered elements
Set
Unordered and unqiue elements
Enum
Enumeration
Select
Union of named types
Generic
Aggregate
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnsafeUnpin 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