pub struct PhpAttributeReference { /* private fields */ }Expand description
PHP attribute reference metadata.
Implementations§
Source§impl PhpAttributeReference
impl PhpAttributeReference
pub fn new(name: PhpAttributeName) -> Self
pub fn with_target(self, target: PhpAttributeTarget) -> Self
pub fn with_argument(self, argument: PhpAttributeArgument) -> Self
pub const fn with_repeatability( self, repeatability: PhpAttributeRepeatability, ) -> Self
pub const fn name(&self) -> &PhpAttributeName
pub fn targets(&self) -> &[PhpAttributeTarget]
pub fn arguments(&self) -> &[PhpAttributeArgument]
pub const fn repeatability(&self) -> PhpAttributeRepeatability
Trait Implementations§
Source§impl Clone for PhpAttributeReference
impl Clone for PhpAttributeReference
Source§fn clone(&self) -> PhpAttributeReference
fn clone(&self) -> PhpAttributeReference
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 PhpAttributeReference
impl Debug for PhpAttributeReference
Source§impl PartialEq for PhpAttributeReference
impl PartialEq for PhpAttributeReference
Source§fn eq(&self, other: &PhpAttributeReference) -> bool
fn eq(&self, other: &PhpAttributeReference) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PhpAttributeReference
impl StructuralPartialEq for PhpAttributeReference
Auto Trait Implementations§
impl Freeze for PhpAttributeReference
impl RefUnwindSafe for PhpAttributeReference
impl Send for PhpAttributeReference
impl Sync for PhpAttributeReference
impl Unpin for PhpAttributeReference
impl UnsafeUnpin for PhpAttributeReference
impl UnwindSafe for PhpAttributeReference
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