pub trait Decorated {
// Required methods
fn attributes(&self) -> &[Attribute];
fn attributes_mut(&mut self) -> &mut [Attribute];
}Expand description
A trait implemented on all types that can be prefixed by attributes.
Required Methods§
Sourcefn attributes(&self) -> &[Attribute]
fn attributes(&self) -> &[Attribute]
List all attributes (@name) of a syntax node.
Sourcefn attributes_mut(&mut self) -> &mut [Attribute]
fn attributes_mut(&mut self) -> &mut [Attribute]
List all attributes (@name) of a syntax node.