pub struct Attribute<'ast> {
pub location: Location,
pub kind: AttributeKind,
pub args: &'ast [Expression<'ast>],
pub name: AstName<'ast>,
}Fields§
§location: Location§kind: AttributeKind§args: &'ast [Expression<'ast>]§name: AstName<'ast>Implementations§
Source§impl Attribute<'_>
impl Attribute<'_>
pub fn kind(&self) -> AttributeKind
pub fn visit<V: AstVisitor>(&self, visitor: &mut V)
pub fn deprecated_info(&self) -> DeprecatedInfo
Trait Implementations§
impl<'ast> Copy for Attribute<'ast>
impl<'ast> StructuralPartialEq for Attribute<'ast>
Auto Trait Implementations§
impl<'ast> !Send for Attribute<'ast>
impl<'ast> !Sync for Attribute<'ast>
impl<'ast> Freeze for Attribute<'ast>
impl<'ast> RefUnwindSafe for Attribute<'ast>
impl<'ast> Unpin for Attribute<'ast>
impl<'ast> UnsafeUnpin for Attribute<'ast>
impl<'ast> UnwindSafe for Attribute<'ast>
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