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 expressions.
Variants§
Literal(PhpLiteral)
A literal value.
Variable(PhpVariable)
A variable.
Array(Vec<PhpArrayElement>)
An array creation.
FunctionCall(PhpFunctionCall)
A function call.
MethodCall(PhpMethodCall)
A method call.
PropertyAccess(PhpPropertyAccess)
A property access.
ArrayAccess(PhpArrayAccess)
An array element access.
Assignment(PhpAssignment)
An assignment operation.
BinaryOp(PhpBinaryOp)
A binary operation.
UnaryOp(PhpUnaryOp)
A unary operation.
TernaryOp(PhpTernaryOp)
A ternary operation.
Cast(PhpCast)
A type cast.
New(PhpNew)
An object instantiation.
Clone(Box<PhpExpression>)
An object clone operation.
Instanceof(PhpInstanceof)
An instanceof check.
Include(PhpInclude)
An include or include_once statement.
Require(PhpRequire)
A require or require_once statement.
Eval(Box<PhpExpression>)
An eval call.
Exit(Option<Box<PhpExpression>>)
An exit or die call.
Empty(Box<PhpExpression>)
An empty check.
Isset(Vec<PhpExpression>)
An isset check.
List(Vec<Option<PhpExpression>>)
A list or short array assignment.
Yield(PhpYield)
A yield expression for generators.
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 UnsafeUnpin 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