pub struct PHPNamespace {
pub path: String,
pub uses: Vec<(String, Option<String>)>,
pub functions: Vec<PHPFunction>,
pub classes: Vec<PHPClass>,
pub interfaces: Vec<PHPInterface>,
pub traits: Vec<PHPTrait>,
pub enums: Vec<PHPEnum>,
}Expand description
A PHP namespace block.
Fields§
§path: StringNamespace path (e.g. OxiLean\\Runtime)
uses: Vec<(String, Option<String>)>use import statements
functions: Vec<PHPFunction>Functions in this namespace
classes: Vec<PHPClass>Classes in this namespace
interfaces: Vec<PHPInterface>Interfaces in this namespace
traits: Vec<PHPTrait>Traits in this namespace
enums: Vec<PHPEnum>Enums in this namespace
Implementations§
Trait Implementations§
Source§impl Clone for PHPNamespace
impl Clone for PHPNamespace
Source§fn clone(&self) -> PHPNamespace
fn clone(&self) -> PHPNamespace
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 PHPNamespace
impl Debug for PHPNamespace
Source§impl PartialEq for PHPNamespace
impl PartialEq for PHPNamespace
impl StructuralPartialEq for PHPNamespace
Auto Trait Implementations§
impl Freeze for PHPNamespace
impl RefUnwindSafe for PHPNamespace
impl Send for PHPNamespace
impl Sync for PHPNamespace
impl Unpin for PHPNamespace
impl UnsafeUnpin for PHPNamespace
impl UnwindSafe for PHPNamespace
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