#[non_exhaustive]pub struct Attribute<'arena, 'src> {
pub name: Name<'arena, 'src>,
pub args: ArenaVec<'arena, Arg<'arena, 'src>>,
pub span: Span,
}Expand description
A single attribute: #[Name(args)].
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Name<'arena, 'src>Attribute class name.
args: ArenaVec<'arena, Arg<'arena, 'src>>Attribute arguments.
span: SpanSource range of this node.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'arena, 'src> !RefUnwindSafe for Attribute<'arena, 'src>
impl<'arena, 'src> !Send for Attribute<'arena, 'src>
impl<'arena, 'src> !Sync for Attribute<'arena, 'src>
impl<'arena, 'src> !UnwindSafe for Attribute<'arena, 'src>
impl<'arena, 'src> Freeze for Attribute<'arena, 'src>
impl<'arena, 'src> Unpin for Attribute<'arena, 'src>
impl<'arena, 'src> UnsafeUnpin for Attribute<'arena, 'src>
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