Crate rustyrs

Source

Structs§

EternalSlugGenerator
A slug generator generator that will generate slugs forever. Each slug is suffixed with its iteration number. After iteration through all possible unique combinations the suffix number is incremented and the generator starts from the beginning. Use cases are for when a smaller slug is required but uniqueness needs to be guaranteed over a longer period of time. If the length of the slug is not important then a 4 or 5 word slug generator should be more than satisfactory from a uniqueness perspective given they could be trillions of unique combinations.
WordSelector
This special class is designed to ensure uniqueness when generating random names. It uses combinatoric logic to hold state between calls to .choose()

Enums§

GeneralException

Statics§

ADJ_FILE
NOUN_FILE

Functions§

combinations
get_slug
get_words
random_slugs