pub struct WhileLoop {
pub while_keyword: Token,
pub condition: Pointer<Expression>,
pub do_block: DoBlock,
}Expand description
A struct representing a while loop.
Fields§
§while_keyword: TokenThe “while” keyword.
condition: Pointer<Expression>The condition of the while loop.
do_block: DoBlockThe do block.
Trait Implementations§
Source§impl Ord for WhileLoop
impl Ord for WhileLoop
Source§impl PartialOrd for WhileLoop
impl PartialOrd for WhileLoop
Source§impl Print for WhileLoop
impl Print for WhileLoop
Source§fn print_final_trivia(&self) -> String
fn print_final_trivia(&self) -> String
Prints only the very final trivia. Used for the default implementation of
Print::print, which just joins Print::print_without_final_trivia
and this function.Source§fn print_without_final_trivia(&self) -> String
fn print_without_final_trivia(&self) -> String
Prints the whole token including all surrounding trivia, excluding the
very last trailing trivia.
impl Eq for WhileLoop
impl StructuralPartialEq for WhileLoop
Auto Trait Implementations§
impl Freeze for WhileLoop
impl RefUnwindSafe for WhileLoop
impl !Send for WhileLoop
impl !Sync for WhileLoop
impl Unpin 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