pub enum Expr {
Show 22 variants
Literal(Literal),
Let {
ty: Spanned<Type>,
definition: Box<Spanned<Self>>,
body: Box<Spanned<Self>>,
},
Perform {
input: Box<Spanned<Self>>,
output: Spanned<Type>,
},
Continue {
input: Box<Spanned<Self>>,
output: Option<Spanned<Type>>,
},
Handle {
expr: Box<Spanned<Self>>,
handlers: Vec<Handler>,
},
Apply {
function: Spanned<Type>,
link_name: Option<LinkName>,
arguments: Vec<Spanned<Self>>,
},
Product(Vec<Spanned<Self>>),
Match {
of: Box<Spanned<Self>>,
cases: Vec<MatchCase>,
},
Typed {
ty: Spanned<Type>,
item: Box<Spanned<Self>>,
},
Hole,
Function {
parameters: Vec<Spanned<Type>>,
body: Box<Spanned<Self>>,
},
Array(Vec<Spanned<Self>>),
Set(Vec<Spanned<Self>>),
Include(String),
Import {
ty: Spanned<Type>,
uuid: Option<Uuid>,
},
Export {
ty: Spanned<Type>,
},
Attribute {
attr: Box<Spanned<Self>>,
item: Box<Spanned<Self>>,
},
Brand {
brands: Vec<String>,
item: Box<Spanned<Self>>,
},
Label {
label: String,
item: Box<Spanned<Self>>,
},
NewType {
ident: String,
ty: Spanned<Type>,
expr: Box<Spanned<Self>>,
},
Comment {
position: CommentPosition,
text: String,
item: Box<Spanned<Self>>,
},
Card {
uuid: Uuid,
item: Box<Spanned<Self>>,
next: Option<Box<Spanned<Self>>>,
},
}Variants§
Literal(Literal)
Let
Perform
Continue
Handle
Apply
Product(Vec<Spanned<Self>>)
Match
Typed
Hole
Function
Array(Vec<Spanned<Self>>)
Set(Vec<Spanned<Self>>)
Include(String)
Import
Export
Attribute
Brand
Label
NewType
Comment
Card
Trait Implementations§
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
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