pub struct AttributeReflection {
pub name: Name,
pub arguments: Option<AttributeArgumentListReflection>,
pub span: Span,
}Expand description
Represents an attribute applied to a class, function, or other PHP constructs.
Attributes provide metadata for the construct they are applied to, often used for annotations or configuration in frameworks and libraries.
Example:
#[Foo, Bar]
class Example {}Fields§
§name: NameThe name of the attribute.
arguments: Option<AttributeArgumentListReflection>Optional list of arguments provided to the attribute.
span: SpanThe span of the attribute in the source code.
Trait Implementations§
Source§impl Clone for AttributeReflection
impl Clone for AttributeReflection
Source§fn clone(&self) -> AttributeReflection
fn clone(&self) -> AttributeReflection
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 AttributeReflection
impl Debug for AttributeReflection
Source§impl<'de> Deserialize<'de> for AttributeReflection
impl<'de> Deserialize<'de> for AttributeReflection
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
Source§impl HasSource for AttributeReflection
impl HasSource for AttributeReflection
Source§fn source(&self) -> SourceIdentifier
fn source(&self) -> SourceIdentifier
Returns the source identifier of the file containing this attribute.
Source§impl HasSpan for AttributeReflection
impl HasSpan for AttributeReflection
Source§impl Hash for AttributeReflection
impl Hash for AttributeReflection
Source§impl Ord for AttributeReflection
impl Ord for AttributeReflection
Source§fn cmp(&self, other: &AttributeReflection) -> Ordering
fn cmp(&self, other: &AttributeReflection) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AttributeReflection
impl PartialEq for AttributeReflection
Source§impl PartialOrd for AttributeReflection
impl PartialOrd for AttributeReflection
Source§impl Serialize for AttributeReflection
impl Serialize for AttributeReflection
impl Eq for AttributeReflection
impl StructuralPartialEq for AttributeReflection
Auto Trait Implementations§
impl Freeze for AttributeReflection
impl RefUnwindSafe for AttributeReflection
impl Send for AttributeReflection
impl Sync for AttributeReflection
impl Unpin for AttributeReflection
impl UnwindSafe for AttributeReflection
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