Enum makepad_shader_compiler::shader_ast::Stmt
source · pub enum Stmt {
Break {
span: TokenSpan,
},
Continue {
span: TokenSpan,
},
For {
span: TokenSpan,
ident: Ident,
from_expr: Expr,
to_expr: Expr,
step_expr: Option<Expr>,
block: Box<Block>,
},
If {
span: TokenSpan,
expr: Expr,
block_if_true: Box<Block>,
block_if_false: Option<Box<Block>>,
},
Match {
span: TokenSpan,
expr: Expr,
matches: Vec<Match>,
},
Let {
span: TokenSpan,
ty: RefCell<Option<Ty>>,
shadow: Cell<Option<ScopeSymShadow>>,
ident: Ident,
ty_expr: Option<TyExpr>,
expr: Option<Expr>,
},
Return {
span: TokenSpan,
expr: Option<Expr>,
},
Block {
span: TokenSpan,
block: Box<Block>,
},
Expr {
span: TokenSpan,
expr: Expr,
},
}
Variants§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Stmt
impl !Send for Stmt
impl !Sync for Stmt
impl Unpin for Stmt
impl UnwindSafe for Stmt
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