pub struct ForLoop {
pub for_token: _For,
pub variable: Symbol,
pub iteration_domain: Option<IterationDomain>,
pub when_condition: Option<WhenCondition>,
pub body: LoopBody,
}Expand description
A typed Macaulay2 for_loop syntax node.
Fields§
§for_token: _ForThe for_token child of this syntax node.
variable: SymbolThe variable child of this syntax node.
iteration_domain: Option<IterationDomain>The iteration_domain child of this syntax node.
when_condition: Option<WhenCondition>The when_condition child of this syntax node.
body: LoopBodyThe body child of this syntax node.
Implementations§
Trait Implementations§
Source§impl Lex for ForLoop
impl Lex for ForLoop
Source§fn to_tokens(&self, output: &mut TokenStream)
fn to_tokens(&self, output: &mut TokenStream)
Appends this value’s token trees to
output.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Emits this value into a fresh token stream.
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,
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