pub enum Type {
Show 18 variants
Brand {
brand: String,
item: Box<Spanned<Type>>,
},
Number,
String,
Trait(Vec<Spanned<Self>>),
Effectful {
ty: Box<Spanned<Self>>,
effects: Spanned<EffectExpr>,
},
Infer,
This,
Alias(String),
Product(Vec<Spanned<Self>>),
Sum(Vec<Spanned<Self>>),
Function {
parameters: Vec<Spanned<Self>>,
body: Box<Spanned<Self>>,
},
Array(Box<Spanned<Self>>),
Set(Box<Spanned<Self>>),
Let {
variable: String,
body: Box<Spanned<Self>>,
},
Variable(String),
BoundedVariable {
bound: Box<Spanned<Self>>,
identifier: String,
},
Attribute {
attr: Box<Spanned<Expr>>,
ty: Box<Spanned<Self>>,
},
Comment {
position: CommentPosition,
text: String,
item: Box<Spanned<Self>>,
},
}Variants§
Brand
Number
String
Trait(Vec<Spanned<Self>>)
Effectful
Infer
This
Alias(String)
Product(Vec<Spanned<Self>>)
Sum(Vec<Spanned<Self>>)
Function
Array(Box<Spanned<Self>>)
Set(Box<Spanned<Self>>)
Let
Variable(String)
BoundedVariable
Attribute
Comment
Trait Implementations§
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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