#[repr(C)]pub struct While {
pub while: Keyword,
pub left_parenthesis: Span,
pub condition: Box<Expression>,
pub right_parenthesis: Span,
pub body: WhileBody,
}Expand description
Represents a while statement in PHP.
Example:
<?php
$i = 0;
while ($i < 10) {
echo $i;
$i++;
}Fields§
§while: Keyword§left_parenthesis: Span§condition: Box<Expression>§right_parenthesis: Span§body: WhileBodyTrait Implementations§
Source§impl<'de> Deserialize<'de> for While
impl<'de> Deserialize<'de> for While
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for While
impl Ord for While
Source§impl PartialOrd for While
impl PartialOrd for While
impl Eq for While
impl StructuralPartialEq for While
Auto Trait Implementations§
impl Freeze for While
impl RefUnwindSafe for While
impl Send for While
impl Sync for While
impl Unpin for While
impl UnwindSafe for While
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