regex_syntax::hir

Function singleton_chars

Source
fn singleton_chars(hirs: &[Hir]) -> Option<Vec<char>>
Expand description

Given a sequence of HIR values where each value corresponds to a literal that is a single char, return that sequence of chars. Otherwise return None. No deduplication is done.