pub enum AttributeArgumentReflection {
Positional {
value_type_reflection: TypeReflection,
span: Span,
},
Named {
name: Name,
value_type_reflection: TypeReflection,
span: Span,
},
}Expand description
Represents a single argument in an attribute.
Arguments can either be positional (e.g., #[Foo("value")]) or named (e.g., #[Foo(name: "value")]).
Variants§
Positional
A positional argument, such as #[Foo("value")].
Fields
§
value_type_reflection: TypeReflectionThe type reflection of the argument’s value.
Named
A named argument, such as #[Foo(name: "value")].
Trait Implementations§
Source§impl Clone for AttributeArgumentReflection
impl Clone for AttributeArgumentReflection
Source§fn clone(&self) -> AttributeArgumentReflection
fn clone(&self) -> AttributeArgumentReflection
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 AttributeArgumentReflection
impl Debug for AttributeArgumentReflection
Source§impl<'de> Deserialize<'de> for AttributeArgumentReflection
impl<'de> Deserialize<'de> for AttributeArgumentReflection
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 Hash for AttributeArgumentReflection
impl Hash for AttributeArgumentReflection
Source§impl Ord for AttributeArgumentReflection
impl Ord for AttributeArgumentReflection
Source§fn cmp(&self, other: &AttributeArgumentReflection) -> Ordering
fn cmp(&self, other: &AttributeArgumentReflection) -> 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 PartialOrd for AttributeArgumentReflection
impl PartialOrd for AttributeArgumentReflection
impl Eq for AttributeArgumentReflection
impl StructuralPartialEq for AttributeArgumentReflection
Auto Trait Implementations§
impl Freeze for AttributeArgumentReflection
impl RefUnwindSafe for AttributeArgumentReflection
impl Send for AttributeArgumentReflection
impl Sync for AttributeArgumentReflection
impl Unpin for AttributeArgumentReflection
impl UnwindSafe for AttributeArgumentReflection
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