pub struct ForStatement {
pub init: Option<ForTarget>,
pub test: Option<Expression>,
pub update: Option<Expression>,
pub body: Statement,
}
Fields
init: Option<ForTarget>
test: Option<Expression>
update: Option<Expression>
body: Statement
Trait Implementations
sourceimpl Clone for ForStatement
impl Clone for ForStatement
sourcefn clone(&self) -> ForStatement
fn clone(&self) -> ForStatement
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 more
sourceimpl Debug for ForStatement
impl Debug for ForStatement
sourceimpl Interpretable for ForStatement
impl Interpretable for ForStatement
sourceimpl PartialEq<ForStatement> for ForStatement
impl PartialEq<ForStatement> for ForStatement
sourcefn eq(&self, other: &ForStatement) -> bool
fn eq(&self, other: &ForStatement) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ForStatement) -> bool
fn ne(&self, other: &ForStatement) -> bool
This method tests for !=
.
impl Eq for ForStatement
impl StructuralEq for ForStatement
impl StructuralPartialEq for ForStatement
Auto Trait Implementations
impl RefUnwindSafe for ForStatement
impl !Send for ForStatement
impl !Sync for ForStatement
impl Unpin for ForStatement
impl UnwindSafe for ForStatement
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