Function wproc_macro::attr_pair_single[][src]

pub fn attr_pair_single(attr: &Attribute) -> Result<(String, Lit, Meta), Error>
Expand description

For attribute like #[former( default = 31 )] return key default and value 31, as well as syn::Meta as the last element of result tuple.

Sample

let ( key, val, meta ) = attr_pair_single( &attr )?;