[][src]Trait synattra::ParseAttributes

pub trait ParseAttributes {
    type Type: Parse;
    fn fn_attr_name() -> &'static str;

    fn parse_attributes(attrs: TokenStream) -> Result<Self::Type> { ... }
}

A trait to parse attributes

Associated Types

type Type: Parse

The type of the attributes to parse

Loading content...

Required methods

fn fn_attr_name() -> &'static str

The name of the attribute to parse

Loading content...

Provided methods

fn parse_attributes(attrs: TokenStream) -> Result<Self::Type>

Parse the attribute

The default implementation should work out of the box

Loading content...

Implementors

Loading content...