pub struct AttributeArg {
pub key: Ident,
pub value: AttributeValue,
pub span: Span,
}Expand description
A single argument in an attribute
Fields§
§key: IdentThe key name (e.g., “max_joules”)
value: AttributeValueThe value (e.g., 0.5)
span: SpanSource span
Trait Implementations§
Source§impl Clone for AttributeArg
impl Clone for AttributeArg
Source§fn clone(&self) -> AttributeArg
fn clone(&self) -> AttributeArg
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 AttributeArg
impl Debug for AttributeArg
Source§impl PartialEq for AttributeArg
impl PartialEq for AttributeArg
impl StructuralPartialEq for AttributeArg
Auto Trait Implementations§
impl Freeze for AttributeArg
impl RefUnwindSafe for AttributeArg
impl Send for AttributeArg
impl Sync for AttributeArg
impl Unpin for AttributeArg
impl UnwindSafe for AttributeArg
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