pub fn parse_generic_param(
par: &mut Parser<'_>,
) -> ParseResult<GenericParameter>
Expand description
Parse a single generic function parameter (eg. T:SomeTrait
in fn foo<T: SomeTrait>(some_arg: u256) -> bool
). # Panics
Panics if the first token isn’t Name
.