Skip to main content

component

Macro component 

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

Create a git_ref_format_core::Component 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.