pub enum Stmt {
Show 16 variants
Empty,
Block(BlockStatement),
Expr(ExpressionStatement),
If(Box<IfStatement>),
Switch(SwitchStatement),
For(Box<ForStatement>),
ForIn(Box<ForInStatement>),
DoWhile(DoWhileStatement),
Return(ReturnStatement),
Break(BreakStatement),
Continue(ContinueStatement),
Label(Box<LabelStatement>),
Throw(ThrowStatement),
Try(TryStatement),
Variable(VariableDeclaration),
Function(FunctionDeclaration),
}
Variants
Empty
Block(BlockStatement)
Expr(ExpressionStatement)
If(Box<IfStatement>)
Switch(SwitchStatement)
For(Box<ForStatement>)
ForIn(Box<ForInStatement>)
DoWhile(DoWhileStatement)
Return(ReturnStatement)
Break(BreakStatement)
Continue(ContinueStatement)
Label(Box<LabelStatement>)
Throw(ThrowStatement)
Try(TryStatement)
Variable(VariableDeclaration)
Function(FunctionDeclaration)
Trait Implementations
sourceimpl From<BlockStatement> for Stmt
impl From<BlockStatement> for Stmt
sourcefn from(v: BlockStatement) -> Self
fn from(v: BlockStatement) -> Self
Converts to this type from the input type.
sourceimpl From<FunctionDeclaration> for Stmt
impl From<FunctionDeclaration> for Stmt
sourcefn from(v: FunctionDeclaration) -> Self
fn from(v: FunctionDeclaration) -> Self
Converts to this type from the input type.
sourceimpl From<ReturnStatement> for Stmt
impl From<ReturnStatement> for Stmt
sourcefn from(v: ReturnStatement) -> Self
fn from(v: ReturnStatement) -> Self
Converts to this type from the input type.
sourceimpl<T> From<T> for Stmt where
ExpressionStatement: From<T>,
impl<T> From<T> for Stmt where
ExpressionStatement: From<T>,
sourceimpl From<VariableDeclaration> for Stmt
impl From<VariableDeclaration> for Stmt
sourcefn from(v: VariableDeclaration) -> Self
fn from(v: VariableDeclaration) -> Self
Converts to this type from the input type.
impl Eq for Stmt
impl StructuralEq for Stmt
impl StructuralPartialEq for Stmt
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more