pub struct Attribute {
pub name: Ident,
pub args: Vec<AttributeStyle>,
pub value: Option<AttributeStyle>,
pub range: Range,
}
Expand description
A attribute is a kind of declaration that usually is on the top of a declaration and can be attached to a function declaration it express some compiler properties
Fields§
§name: Ident
§args: Vec<AttributeStyle>
§value: Option<AttributeStyle>
§range: Range
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin 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