#[repr(C)]pub struct WhileColonDelimitedBody {
pub colon: Span,
pub statements: Sequence<Statement>,
pub end_while: Keyword,
pub terminator: Terminator,
}Expand description
Represents a colon-delimited body of a while statement.
Example:
<?php
$i = 0;
while ($i < 10):
echo $i;
$i++;
endwhile;Fields§
§colon: Span§statements: Sequence<Statement>§end_while: Keyword§terminator: TerminatorTrait Implementations§
Source§impl Clone for WhileColonDelimitedBody
impl Clone for WhileColonDelimitedBody
Source§fn clone(&self) -> WhileColonDelimitedBody
fn clone(&self) -> WhileColonDelimitedBody
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WhileColonDelimitedBody
impl Debug for WhileColonDelimitedBody
Source§impl<'de> Deserialize<'de> for WhileColonDelimitedBody
impl<'de> Deserialize<'de> for WhileColonDelimitedBody
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 HasSpan for WhileColonDelimitedBody
impl HasSpan for WhileColonDelimitedBody
Source§impl Hash for WhileColonDelimitedBody
impl Hash for WhileColonDelimitedBody
Source§impl Ord for WhileColonDelimitedBody
impl Ord for WhileColonDelimitedBody
Source§fn cmp(&self, other: &WhileColonDelimitedBody) -> Ordering
fn cmp(&self, other: &WhileColonDelimitedBody) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WhileColonDelimitedBody
impl PartialEq for WhileColonDelimitedBody
Source§impl PartialOrd for WhileColonDelimitedBody
impl PartialOrd for WhileColonDelimitedBody
Source§impl Serialize for WhileColonDelimitedBody
impl Serialize for WhileColonDelimitedBody
impl Eq for WhileColonDelimitedBody
impl StructuralPartialEq for WhileColonDelimitedBody
Auto Trait Implementations§
impl Freeze for WhileColonDelimitedBody
impl RefUnwindSafe for WhileColonDelimitedBody
impl Send for WhileColonDelimitedBody
impl Sync for WhileColonDelimitedBody
impl Unpin for WhileColonDelimitedBody
impl UnwindSafe for WhileColonDelimitedBody
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