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: SimpleType
Named(String)
Tuple Fields of Named
0: String
Fields of Enumeration
extensibility: Extensibility
items: Vec<String>
Fields of Select
extensibility: Extensibility
types: 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