pub enum PhpStatement {
Show 17 variants
Expression(PhpExpression),
If(PhpIf),
While(PhpWhile),
For(PhpFor),
Foreach(PhpForeach),
Switch(PhpSwitch),
Try(PhpTry),
Return(Option<PhpExpression>),
Break(Option<PhpExpression>),
Continue(Option<PhpExpression>),
Echo(Vec<PhpExpression>),
Print(PhpExpression),
Global(Vec<String>),
Static(Vec<PhpVariable>),
Unset(Vec<PhpExpression>),
Declare(Vec<PhpDeclareItem>),
Block(Vec<PhpStatement>),
}Expand description
PHP 语句
Variants§
Expression(PhpExpression)
If(PhpIf)
While(PhpWhile)
For(PhpFor)
Foreach(PhpForeach)
Switch(PhpSwitch)
Try(PhpTry)
Return(Option<PhpExpression>)
Break(Option<PhpExpression>)
Continue(Option<PhpExpression>)
Echo(Vec<PhpExpression>)
Print(PhpExpression)
Global(Vec<String>)
Static(Vec<PhpVariable>)
Unset(Vec<PhpExpression>)
Declare(Vec<PhpDeclareItem>)
Block(Vec<PhpStatement>)
Trait Implementations§
Source§impl Clone for PhpStatement
impl Clone for PhpStatement
Source§fn clone(&self) -> PhpStatement
fn clone(&self) -> PhpStatement
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 PhpStatement
impl Debug for PhpStatement
Source§impl<'de> Deserialize<'de> for PhpStatement
impl<'de> Deserialize<'de> for PhpStatement
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 PartialEq for PhpStatement
impl PartialEq for PhpStatement
Source§impl Serialize for PhpStatement
impl Serialize for PhpStatement
impl StructuralPartialEq for PhpStatement
Auto Trait Implementations§
impl Freeze for PhpStatement
impl RefUnwindSafe for PhpStatement
impl Send for PhpStatement
impl Sync for PhpStatement
impl Unpin for PhpStatement
impl UnwindSafe for PhpStatement
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