pub struct LoopStatement {
pub condition: Box<AstNode>,
pub body: Vec<AstNode>,
pub end_location: SourceLocation,
}Expand description
used for While and Repeat loops
Fields§
§condition: Box<AstNode>§body: Vec<AstNode>§end_location: SourceLocationTrait Implementations§
Source§impl Clone for LoopStatement
impl Clone for LoopStatement
Source§fn clone(&self) -> LoopStatement
fn clone(&self) -> LoopStatement
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 LoopStatement
impl Debug for LoopStatement
Source§impl<'de> Deserialize<'de> for LoopStatementwhere
'de: 'static,
impl<'de> Deserialize<'de> for LoopStatementwhere
'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 LoopStatement
impl PartialEq for LoopStatement
Source§fn eq(&self, other: &LoopStatement) -> bool
fn eq(&self, other: &LoopStatement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LoopStatement
impl Serialize for LoopStatement
impl StructuralPartialEq for LoopStatement
Auto Trait Implementations§
impl Freeze for LoopStatement
impl RefUnwindSafe for LoopStatement
impl Send for LoopStatement
impl Sync for LoopStatement
impl Unpin for LoopStatement
impl UnsafeUnpin for LoopStatement
impl UnwindSafe for LoopStatement
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