pub enum PhpItem {
OpenTag,
CloseTag,
Statement(PhpStatement),
Function(PhpFunction),
Class(PhpClass),
Interface(PhpInterface),
Trait(PhpTrait),
Namespace(PhpNamespace),
Use(PhpUse),
}Expand description
PHP top-level items.
Variants§
OpenTag
Opening tag (<?php).
CloseTag
Closing tag (?>).
Statement(PhpStatement)
A PHP statement.
Function(PhpFunction)
A function declaration.
Class(PhpClass)
A class declaration.
Interface(PhpInterface)
An interface declaration.
Trait(PhpTrait)
A trait declaration.
Namespace(PhpNamespace)
A namespace declaration.
Use(PhpUse)
A use statement for importing symbols.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PhpItem
impl<'de> Deserialize<'de> for PhpItem
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 PhpItem
Auto Trait Implementations§
impl Freeze for PhpItem
impl RefUnwindSafe for PhpItem
impl Send for PhpItem
impl Sync for PhpItem
impl Unpin for PhpItem
impl UnsafeUnpin for PhpItem
impl UnwindSafe for PhpItem
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