pub struct WhileLoop {
pub while_token: _While,
pub condition: Box<Expr>,
pub body: LoopBody,
}Expand description
A typed Macaulay2 while_loop syntax node.
Fields§
§while_token: _WhileThe while_token child of this syntax node.
condition: Box<Expr>The condition child of this syntax node.
body: LoopBodyThe body child of this syntax node.
Implementations§
Trait Implementations§
Source§impl Lex for WhileLoop
impl Lex for WhileLoop
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 WhileLoop
impl PrettyTree for WhileLoop
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 WhileLoopwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for WhileLoopwhere
N: ExternalCstNode,
Auto Trait Implementations§
impl Freeze for WhileLoop
impl RefUnwindSafe for WhileLoop
impl Send for WhileLoop
impl Sync for WhileLoop
impl Unpin for WhileLoop
impl UnsafeUnpin for WhileLoop
impl UnwindSafe for WhileLoop
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