pub struct Attribute {
pub name: Ident,
pub args: Vec<AttributeArg>,
pub span: Span,
}Expand description
An attribute annotation on a declaration: #[name] or #[name(arg1, arg2)].
Fields§
§name: Ident§args: Vec<AttributeArg>§span: SpanTrait Implementations§
Source§impl FormatEquivalent for Attribute
impl FormatEquivalent for Attribute
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnsafeUnpin for Attribute
impl UnwindSafe for Attribute
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