pub struct PhpUseImport { /* private fields */ }Expand description
PHP namespace import metadata.
Implementations§
Source§impl PhpUseImport
impl PhpUseImport
pub const fn new(target: PhpFullyQualifiedName) -> Self
pub fn with_alias(self, alias: PhpNamespaceAlias) -> Self
pub const fn target(&self) -> &PhpFullyQualifiedName
pub const fn alias(&self) -> Option<&PhpNamespaceAlias>
Trait Implementations§
Source§impl Clone for PhpUseImport
impl Clone for PhpUseImport
Source§fn clone(&self) -> PhpUseImport
fn clone(&self) -> PhpUseImport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PhpUseImport
impl Debug for PhpUseImport
Source§impl PartialEq for PhpUseImport
impl PartialEq for PhpUseImport
Source§fn eq(&self, other: &PhpUseImport) -> bool
fn eq(&self, other: &PhpUseImport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PhpUseImport
impl StructuralPartialEq for PhpUseImport
Auto Trait Implementations§
impl Freeze for PhpUseImport
impl RefUnwindSafe for PhpUseImport
impl Send for PhpUseImport
impl Sync for PhpUseImport
impl Unpin for PhpUseImport
impl UnsafeUnpin for PhpUseImport
impl UnwindSafe for PhpUseImport
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