pub struct ForLoop {
pub keyword: _ForKeyword,
pub variable: Box<Symbol>,
pub range: Option<Box<IterationRange>>,
pub when_keyword: Option<_WhenKeyword>,
pub filter: Option<Box<Expr>>,
pub body: Box<LoopBody>,
}Fields§
§keyword: _ForKeyword§variable: Box<Symbol>§range: Option<Box<IterationRange>>§when_keyword: Option<_WhenKeyword>§filter: Option<Box<Expr>>§body: Box<LoopBody>Implementations§
Source§impl ForLoop
impl ForLoop
pub fn new( keyword: _ForKeyword, variable: Symbol, range: Option<IterationRange>, when_keyword: Option<_WhenKeyword>, filter: Option<Expr>, body: LoopBody, ) -> Self
Trait Implementations§
Source§impl From<ForLoop> for SequenceElement
impl From<ForLoop> for SequenceElement
Source§impl From<ForLoop> for SyntaxNode
impl From<ForLoop> for SyntaxNode
Source§impl PrettyTree for ForLoop
impl PrettyTree for ForLoop
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Source§impl<N> Reconstruct<N> for ForLoopwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for ForLoopwhere
N: ExternalCstNode,
fn matches(node: &N) -> bool
fn reconstruct(node: N) -> Result<Self, ReconstructError>
Source§impl ToCells for ForLoop
impl ToCells for ForLoop
Source§fn to_cells(&self, output: &mut CellStream)
fn to_cells(&self, output: &mut CellStream)
Appends this value’s global cells to
output.Source§fn to_cell_stream(&self, source_id: SourceId) -> CellStream
fn to_cell_stream(&self, source_id: SourceId) -> CellStream
Emits this value into a fresh cell stream with the requested identity.
Auto Trait Implementations§
impl Freeze for ForLoop
impl RefUnwindSafe for ForLoop
impl Send for ForLoop
impl Sync for ForLoop
impl Unpin for ForLoop
impl UnsafeUnpin for ForLoop
impl UnwindSafe for ForLoop
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