Trait Decorated

Source
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§

Source

fn attributes(&self) -> &[Attribute]

List all attributes (@name) of a syntax node.

Source

fn attributes_mut(&mut self) -> &mut [Attribute]

List all attributes (@name) of a syntax node.

Implementors§