Trait attribute_derive::parsing::AttributeMeta

source ·
pub trait AttributeMeta: AttributeBase {
    // Required method
    fn parse_inner(input: ParseStream<'_>) -> Result<Self::Partial>;
}
Expand description

Trait implementing parsing for <function>(<like>) attributes.

This is the trait defining the parsing of both top level attributes deriving FromAttr and sub attributes.

#[attribute(sub_attribute("hello", "world"))]

Required Methods§

source

fn parse_inner(input: ParseStream<'_>) -> Result<Self::Partial>

Parses the content of the parenthesis:

attribute(value)       
          ^^^^^

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl AttributeMeta for TokenStream

Implementors§