[][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: The name() of the first-level attribute.
  • tag: The name() of the second-level attribute.

Panics

Panics if the number of parameters for the tag is not exactly one.