Function wproc_macro::attr_pair_single [−][src]
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 )?;