Function punct

Source
pub fn punct<I>(c: char) -> Punct<I>
where I: Stream<Item = Token>, I::Error: ParseError<I::Item, I::Range, I::Position>,
Expand description

Parses a punctuation token and succeeds if it’s char representation is equal to c.

Cannot match delimiter characters (i.e. (, ), {, }, [, ]). To match a delimiter use delim` instead.