pub fn from_literals(literals: &[&str]) -> Result<PatternSet, MatchError>Expand description
Convenience: compile a set of literal strings for matching.
Each literal gets an ID equal to its index in the slice.
pub fn from_literals(literals: &[&str]) -> Result<PatternSet, MatchError>Convenience: compile a set of literal strings for matching.
Each literal gets an ID equal to its index in the slice.