Macro const_str::regex_assert_match[][src]

macro_rules! regex_assert_match {
    ($re:literal, $text:literal) => { ... };
}

Asserts that the string literal matches the pattern.

Examples

const_str::regex_assert_match!(r"^\d{4}-\d{2}-\d{2}$", "2014-01-01");