pub fn extract_single_argument<T>(
args: impl ExactSizeIterator<Item = T>,
fn_name: &'static str,
loc: &Loc,
) -> Result<T, ParseErrors>
Expand description
Return the single argument in args
iterator, or return a wrong arity error
if the iterator has 0 elements or more than 1 element.