Skip to main content

pattern

Macro pattern 

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

Create a git_ref_format_core::refspec::PatternString from a string literal.

Similar to core::debug_assert, an optimized build will not validate (but rather perform an unsafe conversion) unless -C debug-assertions is passed to the compiler.