[][src]Trait syn_ext::ext::ItemExt

pub trait ItemExt {
    fn attrs(&self) -> Result<&[Attribute]>;
fn attrs_mut(&mut self) -> Result<&mut Vec<Attribute>>; }

Extension for syn::Item

Required methods

fn attrs(&self) -> Result<&[Attribute]>

Returns reference of inner attrs if not verbatim; otherwise Err

fn attrs_mut(&mut self) -> Result<&mut Vec<Attribute>>

Returns mutable reference of inner attrs if not verbatim; otherwise Err

Loading content...

Implementations on Foreign Types

impl ItemExt for Item[src]

Loading content...

Implementors

Loading content...