Crate smol_symbol_macros

Source
Expand description

This crate houses the s! macro, used to create Symbol / CustomSymbol instances at const-eval time from a provided ident and (if applicable) Alphabet.

Macrosยง

custom_alphabet
Allows you to define a custom alphabet for use with CustomSymbol and the s! macro. The macro takes two idents separated by a comma as input. The first ident should be the name of the alphabet you would like to create, and the second ident should contain all of the characters you would like to use in your alphabet (symbols must be comprised only of characters that are valid in an ident.
s
Generates a Symbol or CustomSymbol at const-eval time based on the provided ident and (optional) path to a custom Alphabet., e.g.: