pub enum Statement {
Show 36 variants
FullOpeningTag(FullOpeningTagStatement),
ShortOpeningTag(ShortOpeningTagStatement),
EchoOpeningTag(EchoOpeningTagStatement),
ClosingTag(ClosingTagStatement),
InlineHtml(InlineHtmlStatement),
Label(LabelStatement),
Goto(GotoStatement),
HaltCompiler(HaltCompilerStatement),
Static(StaticStatement),
DoWhile(DoWhileStatement),
While(WhileStatement),
For(ForStatement),
Foreach(ForeachStatement),
Break(BreakStatement),
Continue(ContinueStatement),
Constant(ConstantStatement),
Function(FunctionStatement),
Class(ClassStatement),
Trait(TraitStatement),
Interface(InterfaceStatement),
If(IfStatement),
Switch(SwitchStatement),
Echo(EchoStatement),
Expression(ExpressionStatement),
Return(ReturnStatement),
Namespace(NamespaceStatement),
Use(UseStatement),
GroupUse(GroupUseStatement),
Comment(Comment),
Try(TryStatement),
UnitEnum(UnitEnumStatement),
BackedEnum(BackedEnumStatement),
Block(BlockStatement),
Global(GlobalStatement),
Declare(DeclareStatement),
Noop(Span),
}
Variants§
FullOpeningTag(FullOpeningTagStatement)
ShortOpeningTag(ShortOpeningTagStatement)
EchoOpeningTag(EchoOpeningTagStatement)
ClosingTag(ClosingTagStatement)
InlineHtml(InlineHtmlStatement)
Label(LabelStatement)
Goto(GotoStatement)
HaltCompiler(HaltCompilerStatement)
Static(StaticStatement)
DoWhile(DoWhileStatement)
While(WhileStatement)
For(ForStatement)
Foreach(ForeachStatement)
Break(BreakStatement)
Continue(ContinueStatement)
Constant(ConstantStatement)
Function(FunctionStatement)
Class(ClassStatement)
Trait(TraitStatement)
Interface(InterfaceStatement)
If(IfStatement)
Switch(SwitchStatement)
Echo(EchoStatement)
Expression(ExpressionStatement)
Return(ReturnStatement)
Namespace(NamespaceStatement)
Use(UseStatement)
GroupUse(GroupUseStatement)
Comment(Comment)
Try(TryStatement)
UnitEnum(UnitEnumStatement)
BackedEnum(BackedEnumStatement)
Block(BlockStatement)
Global(GlobalStatement)
Declare(DeclareStatement)
Noop(Span)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Statement
impl<'de> Deserialize<'de> for Statement
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 Statement
impl JsonSchema for Statement
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 moreimpl Eq for Statement
impl StructuralPartialEq for Statement
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
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