Skip to main content

string_with_only_alphanumerics_underscores_and_hyphens

Macro string_with_only_alphanumerics_underscores_and_hyphens 

Source
string_with_only_alphanumerics_underscores_and_hyphens!() { /* proc-macro */ }
Expand description

Creates a validated StringWithOnlyAlphaNumericsUnderscoresAndHyphens wrapper at compile time.

ยงValidation Rules

  • String must not be empty
  • Only alphanumeric characters, underscores, and hyphens are allowed