Struct esr::ast::statement::ForStatement
source · pub struct ForStatement<'ast> {
pub init: Option<Node<'ast, ForInit<'ast>>>,
pub test: Option<ExpressionNode<'ast>>,
pub update: Option<ExpressionNode<'ast>>,
pub body: StatementNode<'ast>,
}
Fields
init: Option<Node<'ast, ForInit<'ast>>>
test: Option<ExpressionNode<'ast>>
update: Option<ExpressionNode<'ast>>
body: StatementNode<'ast>
Trait Implementations
sourceimpl<'ast> Clone for ForStatement<'ast>
impl<'ast> Clone for ForStatement<'ast>
sourcefn clone(&self) -> ForStatement<'ast>
fn clone(&self) -> ForStatement<'ast>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'ast> Debug for ForStatement<'ast>
impl<'ast> Debug for ForStatement<'ast>
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> PartialEq<ForStatement<'ast>> for ForStatement<'ast>
impl<'ast> PartialEq<ForStatement<'ast>> for ForStatement<'ast>
sourcefn eq(&self, other: &ForStatement<'ast>) -> bool
fn eq(&self, other: &ForStatement<'ast>) -> bool
impl<'ast> Copy for ForStatement<'ast>
impl<'ast> StructuralPartialEq for ForStatement<'ast>
Auto Trait Implementations
impl<'ast> RefUnwindSafe for ForStatement<'ast>
impl<'ast> Send for ForStatement<'ast>
impl<'ast> !Sync for ForStatement<'ast>
impl<'ast> Unpin for ForStatement<'ast>
impl<'ast> UnwindSafe for ForStatement<'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