[−][src]Function proc_macro_roids::tag_parameter
pub fn tag_parameter<NS, Tag>(
attrs: &[Attribute],
namespace: NS,
tag: Tag
) -> Option<Meta> where
NS: Display,
Tag: Display,
Ident: PartialEq<NS>,
Ident: PartialEq<Tag>,
Returns the parameter from #[namespace(tag(parameter))].
Parameters
attrs: Attributes of the item to inspect.namespace: Thename()of the first-level attribute.tag: Thename()of the second-level attribute.
Panics
Panics if the number of parameters for the tag is not exactly one.