[][src]Function combine_proc_macro::parser::punct

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

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.