pub enum Expression {
Show 65 variants
Eval(EvalExpression),
Empty(EmptyExpression),
Die(DieExpression),
Exit(ExitExpression),
Isset(IssetExpression),
Unset(UnsetExpression),
Print(PrintExpression),
Literal(Literal),
ArithmeticOperation(ArithmeticOperationExpression),
AssignmentOperation(AssignmentOperationExpression),
BitwiseOperation(BitwiseOperationExpression),
ComparisonOperation(ComparisonOperationExpression),
LogicalOperation(LogicalOperationExpression),
Concat(ConcatExpression),
Instanceof(InstanceofExpression),
Reference(ReferenceExpression),
Parenthesized(ParenthesizedExpression),
ErrorSuppress(ErrorSuppressExpression),
Identifier(Identifier),
Variable(Variable),
Include(IncludeExpression),
IncludeOnce(IncludeOnceExpression),
Require(RequireExpression),
RequireOnce(RequireOnceExpression),
FunctionCall(FunctionCallExpression),
FunctionClosureCreation(FunctionClosureCreationExpression),
MethodCall(MethodCallExpression),
MethodClosureCreation(MethodClosureCreationExpression),
NullsafeMethodCall(NullsafeMethodCallExpression),
StaticMethodCall(StaticMethodCallExpression),
StaticVariableMethodCall(StaticVariableMethodCallExpression),
StaticMethodClosureCreation(StaticMethodClosureCreationExpression),
StaticVariableMethodClosureCreation(StaticVariableMethodClosureCreationExpression),
PropertyFetch(PropertyFetchExpression),
NullsafePropertyFetch(NullsafePropertyFetchExpression),
StaticPropertyFetch(StaticPropertyFetchExpression),
ConstantFetch(ConstantFetchExpression),
Static,
Self_,
Parent,
ShortArray(ShortArrayExpression),
Array(ArrayExpression),
List(ListExpression),
Closure(ClosureExpression),
ArrowFunction(ArrowFunctionExpression),
New(NewExpression),
InterpolatedString(InterpolatedStringExpression),
Heredoc(HeredocExpression),
Nowdoc(NowdocExpression),
ShellExec(ShellExecExpression),
AnonymousClass(AnonymousClassExpression),
Bool(BoolExpression),
ArrayIndex(ArrayIndexExpression),
Null,
MagicConstant(MagicConstantExpression),
ShortTernary(ShortTernaryExpression),
Ternary(TernaryExpression),
Coalesce(CoalesceExpression),
Clone(CloneExpression),
Match(MatchExpression),
Throw(ThrowExpression),
Yield(YieldExpression),
YieldFrom(YieldFromExpression),
Cast(CastExpression),
Noop,
}
Variants§
Eval(EvalExpression)
Empty(EmptyExpression)
Die(DieExpression)
Exit(ExitExpression)
Isset(IssetExpression)
Unset(UnsetExpression)
Print(PrintExpression)
Literal(Literal)
ArithmeticOperation(ArithmeticOperationExpression)
AssignmentOperation(AssignmentOperationExpression)
BitwiseOperation(BitwiseOperationExpression)
ComparisonOperation(ComparisonOperationExpression)
LogicalOperation(LogicalOperationExpression)
Concat(ConcatExpression)
Instanceof(InstanceofExpression)
Reference(ReferenceExpression)
Parenthesized(ParenthesizedExpression)
ErrorSuppress(ErrorSuppressExpression)
Identifier(Identifier)
Variable(Variable)
Include(IncludeExpression)
IncludeOnce(IncludeOnceExpression)
Require(RequireExpression)
RequireOnce(RequireOnceExpression)
FunctionCall(FunctionCallExpression)
FunctionClosureCreation(FunctionClosureCreationExpression)
MethodCall(MethodCallExpression)
MethodClosureCreation(MethodClosureCreationExpression)
NullsafeMethodCall(NullsafeMethodCallExpression)
StaticMethodCall(StaticMethodCallExpression)
StaticVariableMethodCall(StaticVariableMethodCallExpression)
StaticMethodClosureCreation(StaticMethodClosureCreationExpression)
StaticVariableMethodClosureCreation(StaticVariableMethodClosureCreationExpression)
PropertyFetch(PropertyFetchExpression)
NullsafePropertyFetch(NullsafePropertyFetchExpression)
StaticPropertyFetch(StaticPropertyFetchExpression)
ConstantFetch(ConstantFetchExpression)
Static
Self_
Parent
ShortArray(ShortArrayExpression)
Array(ArrayExpression)
List(ListExpression)
Closure(ClosureExpression)
ArrowFunction(ArrowFunctionExpression)
New(NewExpression)
InterpolatedString(InterpolatedStringExpression)
Heredoc(HeredocExpression)
Nowdoc(NowdocExpression)
ShellExec(ShellExecExpression)
AnonymousClass(AnonymousClassExpression)
Bool(BoolExpression)
ArrayIndex(ArrayIndexExpression)
Null
MagicConstant(MagicConstantExpression)
ShortTernary(ShortTernaryExpression)
Ternary(TernaryExpression)
Coalesce(CoalesceExpression)
Clone(CloneExpression)
Match(MatchExpression)
Throw(ThrowExpression)
Yield(YieldExpression)
YieldFrom(YieldFromExpression)
Cast(CastExpression)
Noop
Trait Implementations§
Source§impl Clone for Expression
impl Clone for Expression
Source§fn clone(&self) -> Expression
fn clone(&self) -> Expression
Returns a copy 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 Expression
impl Debug for Expression
Source§impl<'de> Deserialize<'de> for Expression
impl<'de> Deserialize<'de> for Expression
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 JsonSchema for Expression
impl JsonSchema for Expression
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for Expression
impl PartialEq for Expression
Source§impl Serialize for Expression
impl Serialize for Expression
impl Eq for Expression
impl StructuralPartialEq for Expression
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
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