Macro const_str::regex_assert_match [−][src]
Asserts that the string literal matches the pattern.
Examples
const_str::regex_assert_match!(r"^\d{4}-\d{2}-\d{2}$", "2014-01-01");
Asserts that the string literal matches the pattern.
const_str::regex_assert_match!(r"^\d{4}-\d{2}-\d{2}$", "2014-01-01");