Enum espr::ast::Type [−][src]
pub enum Type {
Simple(SimpleType),
Named(String),
Set {
base: Box<Type>,
bound: Option<Bound>,
},
Bag {
base: Box<Type>,
bound: Option<Bound>,
},
List {
base: Box<Type>,
bound: Option<Bound>,
unique: bool,
},
Array {
base: Box<Type>,
bound: Option<Bound>,
unique: bool,
optional: bool,
},
Enumeration {
extensibility: Extensibility,
items: Vec<String>,
},
Select {
extensibility: Extensibility,
types: Vec<String>,
},
Aggregate {
base: Box<Type>,
label: Option<String>,
},
GenericEntity(Option<String>),
Generic(Option<String>),
}Expand description
Parameter type appears when using the type e.g. in attribute definition, function parameter, and so on.
Variants
Simple(SimpleType)Tuple Fields of Simple
0: SimpleTypeNamed(String)Tuple Fields of Named
0: StringFields of Enumeration
extensibility: Extensibilityitems: Vec<String>Fields of Select
extensibility: Extensibilitytypes: Vec<String>Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Type
impl UnwindSafe for Type
Blanket Implementations
Mutably borrows from an owned value. Read more