Skip to main content

from_literals

Function from_literals 

Source
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.