pub struct PhpIf {
pub condition: Box<PhpExpression>,
pub then_stmt: Box<PhpStatement>,
pub elseif_stmts: Vec<PhpElseif>,
pub else_stmt: Option<Box<PhpStatement>>,
}Expand description
PHP if 语句
Fields§
§condition: Box<PhpExpression>§then_stmt: Box<PhpStatement>§elseif_stmts: Vec<PhpElseif>§else_stmt: Option<Box<PhpStatement>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for PhpIf
impl<'de> Deserialize<'de> for PhpIf
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
impl StructuralPartialEq for PhpIf
Auto Trait Implementations§
impl Freeze for PhpIf
impl RefUnwindSafe for PhpIf
impl Send for PhpIf
impl Sync for PhpIf
impl Unpin for PhpIf
impl UnwindSafe for PhpIf
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