pub struct PhpAttributeArgument { /* private fields */ }Expand description
Simple PHP attribute argument metadata.
Implementations§
Source§impl PhpAttributeArgument
impl PhpAttributeArgument
pub const fn positional(value: PhpAttributeArgumentValue) -> Self
pub const fn named( name: PhpAttributeArgumentName, value: PhpAttributeArgumentValue, ) -> Self
pub const fn name(&self) -> Option<&PhpAttributeArgumentName>
pub const fn value(&self) -> &PhpAttributeArgumentValue
Trait Implementations§
Source§impl Clone for PhpAttributeArgument
impl Clone for PhpAttributeArgument
Source§fn clone(&self) -> PhpAttributeArgument
fn clone(&self) -> PhpAttributeArgument
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 PhpAttributeArgument
impl Debug for PhpAttributeArgument
Source§impl PartialEq for PhpAttributeArgument
impl PartialEq for PhpAttributeArgument
Source§fn eq(&self, other: &PhpAttributeArgument) -> bool
fn eq(&self, other: &PhpAttributeArgument) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PhpAttributeArgument
impl StructuralPartialEq for PhpAttributeArgument
Auto Trait Implementations§
impl Freeze for PhpAttributeArgument
impl RefUnwindSafe for PhpAttributeArgument
impl Send for PhpAttributeArgument
impl Sync for PhpAttributeArgument
impl Unpin for PhpAttributeArgument
impl UnsafeUnpin for PhpAttributeArgument
impl UnwindSafe for PhpAttributeArgument
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