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 GetRange for WhileLoop
impl GetRange for WhileLoop
Source§fn get_range(&self) -> Result<Range, GetRangeError>
fn get_range(&self) -> Result<Range, GetRangeError>
Get the range of the node. This will only fail if
Cst.status is
AstStatus::HasErrors.Source§impl Ord for WhileLoop
impl Ord for WhileLoop
Source§impl PartialOrd for WhileLoop
impl PartialOrd for WhileLoop
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