pub struct EnhancedForStmt {
pub leading_comments: Vec<Comment>,
pub for_span: Span,
pub paren_span: (Span, Span),
pub var_decl: LocalVarDeclStmt,
pub colon_span: Span,
pub iterable: Expr,
pub body: Box<Stmt>,
}Expand description
An enhanced for statement: for (Type var : iterable) body.
Fields§
§leading_comments: Vec<Comment>§for_span: Span§paren_span: (Span, Span)§var_decl: LocalVarDeclStmt§colon_span: Span§iterable: Expr§body: Box<Stmt>Implementations§
Trait Implementations§
Source§impl Clone for EnhancedForStmt
impl Clone for EnhancedForStmt
Source§fn clone(&self) -> EnhancedForStmt
fn clone(&self) -> EnhancedForStmt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnhancedForStmt
impl Debug for EnhancedForStmt
Source§impl Hash for EnhancedForStmt
impl Hash for EnhancedForStmt
Source§impl PartialEq for EnhancedForStmt
impl PartialEq for EnhancedForStmt
Source§fn eq(&self, other: &EnhancedForStmt) -> bool
fn eq(&self, other: &EnhancedForStmt) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for EnhancedForStmt
impl StructuralPartialEq for EnhancedForStmt
Auto Trait Implementations§
impl Freeze for EnhancedForStmt
impl RefUnwindSafe for EnhancedForStmt
impl Send for EnhancedForStmt
impl Sync for EnhancedForStmt
impl Unpin for EnhancedForStmt
impl UnsafeUnpin for EnhancedForStmt
impl UnwindSafe for EnhancedForStmt
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