pub struct ForLoopStatement {
pub counter: Box<AstNode>,
pub start: Box<AstNode>,
pub end: Box<AstNode>,
pub by_step: Option<Box<AstNode>>,
pub body: Vec<AstNode>,
pub end_location: SourceLocation,
}Fields§
§counter: Box<AstNode>§start: Box<AstNode>§end: Box<AstNode>§by_step: Option<Box<AstNode>>§body: Vec<AstNode>§end_location: SourceLocationImplementations§
Source§impl ForLoopStatement
impl ForLoopStatement
pub fn get_conditionals(&self) -> Vec<&AstNode>
Trait Implementations§
Source§impl Clone for ForLoopStatement
impl Clone for ForLoopStatement
Source§fn clone(&self) -> ForLoopStatement
fn clone(&self) -> ForLoopStatement
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 ForLoopStatement
impl Debug for ForLoopStatement
Source§impl<'de> Deserialize<'de> for ForLoopStatementwhere
'de: 'static,
impl<'de> Deserialize<'de> for ForLoopStatementwhere
'de: 'static,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ForLoopStatement
impl PartialEq for ForLoopStatement
Source§fn eq(&self, other: &ForLoopStatement) -> bool
fn eq(&self, other: &ForLoopStatement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ForLoopStatement
impl Serialize for ForLoopStatement
impl StructuralPartialEq for ForLoopStatement
Auto Trait Implementations§
impl Freeze for ForLoopStatement
impl RefUnwindSafe for ForLoopStatement
impl Send for ForLoopStatement
impl Sync for ForLoopStatement
impl Unpin for ForLoopStatement
impl UnsafeUnpin for ForLoopStatement
impl UnwindSafe for ForLoopStatement
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