#[repr(C)]pub struct For {
pub for: Keyword,
pub left_parenthesis: Span,
pub initializations: TokenSeparatedSequence<Expression>,
pub initializations_semicolon: Span,
pub conditions: TokenSeparatedSequence<Expression>,
pub conditions_semicolon: Span,
pub increments: TokenSeparatedSequence<Expression>,
pub right_parenthesis: Span,
pub body: ForBody,
}Expand description
Represents a for statement in PHP.
Example:
<?php
for ($i = 0; $i < 10; $i++) {
echo $i;
}Fields§
§for: Keyword§left_parenthesis: Span§initializations: TokenSeparatedSequence<Expression>§initializations_semicolon: Span§conditions: TokenSeparatedSequence<Expression>§conditions_semicolon: Span§increments: TokenSeparatedSequence<Expression>§right_parenthesis: Span§body: ForBodyTrait Implementations§
Source§impl<'de> Deserialize<'de> for For
impl<'de> Deserialize<'de> for For
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 For
impl Ord for For
Source§impl PartialOrd for For
impl PartialOrd for For
impl Eq for For
impl StructuralPartialEq for For
Auto Trait Implementations§
impl Freeze for For
impl RefUnwindSafe for For
impl Send for For
impl Sync for For
impl Unpin for For
impl UnwindSafe for For
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> HasPosition for Twhere
T: HasSpan,
impl<T> HasPosition for Twhere
T: HasSpan,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more