pub enum Statement<'ast> {
Show 19 variants
Empty,
Expression(ExpressionNode<'ast>),
Declaration(DeclarationStatement<'ast>),
Return(ReturnStatement<'ast>),
Break(BreakStatement<'ast>),
Continue(ContinueStatement<'ast>),
Throw(ThrowStatement<'ast>),
If(IfStatement<'ast>),
While(WhileStatement<'ast>),
Do(DoStatement<'ast>),
For(ForStatement<'ast>),
ForIn(ForInStatement<'ast>),
ForOf(ForOfStatement<'ast>),
Try(TryStatement<'ast>),
Block(BlockStatement<'ast>),
Labeled(LabeledStatement<'ast>),
Function(FunctionStatement<'ast>),
Class(ClassStatement<'ast>),
Switch(SwitchStatement<'ast>),
}
Variants
Empty
Expression(ExpressionNode<'ast>)
Declaration(DeclarationStatement<'ast>)
Return(ReturnStatement<'ast>)
Break(BreakStatement<'ast>)
Continue(ContinueStatement<'ast>)
Throw(ThrowStatement<'ast>)
If(IfStatement<'ast>)
While(WhileStatement<'ast>)
Do(DoStatement<'ast>)
For(ForStatement<'ast>)
ForIn(ForInStatement<'ast>)
ForOf(ForOfStatement<'ast>)
Try(TryStatement<'ast>)
Block(BlockStatement<'ast>)
Labeled(LabeledStatement<'ast>)
Function(FunctionStatement<'ast>)
Class(ClassStatement<'ast>)
Switch(SwitchStatement<'ast>)
Implementations
Trait Implementations
sourceimpl<'ast> From<Block<'ast, Statement<'ast>>> for Statement<'ast>
impl<'ast> From<Block<'ast, Statement<'ast>>> for Statement<'ast>
sourcefn from(val: BlockStatement<'ast>) -> Self
fn from(val: BlockStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> From<BreakStatement<'ast>> for Statement<'ast>
impl<'ast> From<BreakStatement<'ast>> for Statement<'ast>
sourcefn from(val: BreakStatement<'ast>) -> Self
fn from(val: BreakStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> From<Class<'ast, MandatoryName<'ast>>> for Statement<'ast>
impl<'ast> From<Class<'ast, MandatoryName<'ast>>> for Statement<'ast>
sourcefn from(val: ClassStatement<'ast>) -> Self
fn from(val: ClassStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> From<ContinueStatement<'ast>> for Statement<'ast>
impl<'ast> From<ContinueStatement<'ast>> for Statement<'ast>
sourcefn from(val: ContinueStatement<'ast>) -> Self
fn from(val: ContinueStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> From<DeclarationStatement<'ast>> for Statement<'ast>
impl<'ast> From<DeclarationStatement<'ast>> for Statement<'ast>
sourcefn from(val: DeclarationStatement<'ast>) -> Self
fn from(val: DeclarationStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> From<DoStatement<'ast>> for Statement<'ast>
impl<'ast> From<DoStatement<'ast>> for Statement<'ast>
sourcefn from(val: DoStatement<'ast>) -> Self
fn from(val: DoStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> From<ForInStatement<'ast>> for Statement<'ast>
impl<'ast> From<ForInStatement<'ast>> for Statement<'ast>
sourcefn from(val: ForInStatement<'ast>) -> Self
fn from(val: ForInStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> From<ForOfStatement<'ast>> for Statement<'ast>
impl<'ast> From<ForOfStatement<'ast>> for Statement<'ast>
sourcefn from(val: ForOfStatement<'ast>) -> Self
fn from(val: ForOfStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> From<ForStatement<'ast>> for Statement<'ast>
impl<'ast> From<ForStatement<'ast>> for Statement<'ast>
sourcefn from(val: ForStatement<'ast>) -> Self
fn from(val: ForStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> From<Function<'ast, MandatoryName<'ast>>> for Statement<'ast>
impl<'ast> From<Function<'ast, MandatoryName<'ast>>> for Statement<'ast>
sourcefn from(val: FunctionStatement<'ast>) -> Self
fn from(val: FunctionStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> From<IfStatement<'ast>> for Statement<'ast>
impl<'ast> From<IfStatement<'ast>> for Statement<'ast>
sourcefn from(val: IfStatement<'ast>) -> Self
fn from(val: IfStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> From<LabeledStatement<'ast>> for Statement<'ast>
impl<'ast> From<LabeledStatement<'ast>> for Statement<'ast>
sourcefn from(val: LabeledStatement<'ast>) -> Self
fn from(val: LabeledStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> From<Node<'ast, Expression<'ast>>> for Statement<'ast>
impl<'ast> From<Node<'ast, Expression<'ast>>> for Statement<'ast>
sourcefn from(val: ExpressionNode<'ast>) -> Self
fn from(val: ExpressionNode<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> From<ReturnStatement<'ast>> for Statement<'ast>
impl<'ast> From<ReturnStatement<'ast>> for Statement<'ast>
sourcefn from(val: ReturnStatement<'ast>) -> Self
fn from(val: ReturnStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> From<SwitchStatement<'ast>> for Statement<'ast>
impl<'ast> From<SwitchStatement<'ast>> for Statement<'ast>
sourcefn from(val: SwitchStatement<'ast>) -> Self
fn from(val: SwitchStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> From<ThrowStatement<'ast>> for Statement<'ast>
impl<'ast> From<ThrowStatement<'ast>> for Statement<'ast>
sourcefn from(val: ThrowStatement<'ast>) -> Self
fn from(val: ThrowStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> From<TryStatement<'ast>> for Statement<'ast>
impl<'ast> From<TryStatement<'ast>> for Statement<'ast>
sourcefn from(val: TryStatement<'ast>) -> Self
fn from(val: TryStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> From<WhileStatement<'ast>> for Statement<'ast>
impl<'ast> From<WhileStatement<'ast>> for Statement<'ast>
sourcefn from(val: WhileStatement<'ast>) -> Self
fn from(val: WhileStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> PartialEq<Statement<'ast>> for Statement<'ast>
impl<'ast> PartialEq<Statement<'ast>> for Statement<'ast>
impl<'ast> Copy for Statement<'ast>
impl<'ast> StructuralPartialEq for Statement<'ast>
Auto Trait Implementations
impl<'ast> RefUnwindSafe for Statement<'ast>
impl<'ast> Send for Statement<'ast>
impl<'ast> !Sync for Statement<'ast>
impl<'ast> Unpin for Statement<'ast>
impl<'ast> UnwindSafe for Statement<'ast>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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