pub enum ZigStmt {
VarDecl {
name: String,
ty: Option<ZigType>,
value: ZigExpr,
},
ConstDecl {
name: String,
ty: Option<ZigType>,
value: ZigExpr,
},
Assign {
target: ZigExpr,
value: ZigExpr,
},
Return(Option<ZigExpr>),
Expr(ZigExpr),
If {
cond: ZigExpr,
body: Vec<ZigStmt>,
else_: Vec<ZigStmt>,
},
While {
cond: ZigExpr,
body: Vec<ZigStmt>,
},
Defer(ZigExpr),
}Expand description
Zig statement representation.
Variants§
Implementations§
Trait Implementations§
impl StructuralPartialEq for ZigStmt
Auto Trait Implementations§
impl Freeze for ZigStmt
impl RefUnwindSafe for ZigStmt
impl Send for ZigStmt
impl Sync for ZigStmt
impl Unpin for ZigStmt
impl UnsafeUnpin for ZigStmt
impl UnwindSafe for ZigStmt
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