attribute_derive::parsing

Function parse_name

Source
pub fn parse_name(input: ParseStream<'_>, name: &str) -> Option<Ident>
Expand description

Parses the name, if it matches returns Some(name) and removes the name from input, if None it does not modify the input.