pub enum PhpExpression {
Show 23 variants
Literal(PhpLiteral),
Variable(PhpVariable),
Array(Vec<PhpArrayElement>),
FunctionCall(PhpFunctionCall),
MethodCall(PhpMethodCall),
PropertyAccess(PhpPropertyAccess),
ArrayAccess(PhpArrayAccess),
Assignment(PhpAssignment),
BinaryOp(PhpBinaryOp),
UnaryOp(PhpUnaryOp),
TernaryOp(PhpTernaryOp),
Cast(PhpCast),
New(PhpNew),
Clone(Box<PhpExpression>),
Instanceof(PhpInstanceof),
Include(PhpInclude),
Require(PhpRequire),
Eval(Box<PhpExpression>),
Exit(Option<Box<PhpExpression>>),
Empty(Box<PhpExpression>),
Isset(Vec<PhpExpression>),
List(Vec<Option<PhpExpression>>),
Yield(PhpYield),
}Expand description
PHP 表达式
Variants§
Literal(PhpLiteral)
Variable(PhpVariable)
Array(Vec<PhpArrayElement>)
FunctionCall(PhpFunctionCall)
MethodCall(PhpMethodCall)
PropertyAccess(PhpPropertyAccess)
ArrayAccess(PhpArrayAccess)
Assignment(PhpAssignment)
BinaryOp(PhpBinaryOp)
UnaryOp(PhpUnaryOp)
TernaryOp(PhpTernaryOp)
Cast(PhpCast)
New(PhpNew)
Clone(Box<PhpExpression>)
Instanceof(PhpInstanceof)
Include(PhpInclude)
Require(PhpRequire)
Eval(Box<PhpExpression>)
Exit(Option<Box<PhpExpression>>)
Empty(Box<PhpExpression>)
Isset(Vec<PhpExpression>)
List(Vec<Option<PhpExpression>>)
Yield(PhpYield)
Trait Implementations§
Source§impl Clone for PhpExpression
impl Clone for PhpExpression
Source§fn clone(&self) -> PhpExpression
fn clone(&self) -> PhpExpression
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 PhpExpression
impl Debug for PhpExpression
Source§impl<'de> Deserialize<'de> for PhpExpression
impl<'de> Deserialize<'de> for PhpExpression
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 PhpExpression
impl PartialEq for PhpExpression
Source§impl Serialize for PhpExpression
impl Serialize for PhpExpression
impl StructuralPartialEq for PhpExpression
Auto Trait Implementations§
impl Freeze for PhpExpression
impl RefUnwindSafe for PhpExpression
impl Send for PhpExpression
impl Sync for PhpExpression
impl Unpin for PhpExpression
impl UnwindSafe for PhpExpression
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