Skip to main content

lazy_regex

Macro lazy_regex 

Source
macro_rules! lazy_regex {
    ($pattern:expr) => { ... };
}
Expand description

Creates a compile-time verified regex wrapped in LazyLock.

ยงSafety

The regex pattern is verified at compile time and cannot fail at runtime. The unreachable!() branch exists only for type checking.