pub struct Attribute {
pub namespace: Option<Symbol>,
pub name: Symbol,
pub args: AttrArgList,
pub syntax: AttrSyntax,
pub span: Span,
}Expand description
One attribute.
Fields§
§namespace: Option<Symbol>The namespace in [[gnu::packed]], and None for an attribute written without one.
name: SymbolThe name, with GCC’s optional pair of leading and trailing underscores already off it,
so that __packed__ and packed are the same symbol here.
args: AttrArgListThe arguments, which are not all expressions.
syntax: AttrSyntaxWhich spelling it was written in.
span: SpanThe whole attribute, from its name to its closing parenthesis.
Trait Implementations§
impl Copy for Attribute
impl Eq for Attribute
impl StructuralPartialEq for Attribute
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