Crate reword

Source
Expand description

Provides some utility functions for human-readable formatting of words.

Functions§

and_join
Join the list with an ‘and’ before the last element of the list.
camel_case
Formats the input string as a camel case name.
camel_case_with_limit
Formats the input string as a camel case name with a limit on the length.
kebab_case
Formats the input string as a kebab case name.
kebab_case_with_limit
Formats the input string as a kebab case name and limits the length of the name.
name
Formats the input string as a name.
name_with_limit
Formats the input string as a name and limits the length of the name.
or_join
Join the list with an ‘or’ before the last element of the list.
pascal_case
Formats the input string as a pascal case name.
pascal_case_with_limit
Formats the input string as a pascal case name with a limit on the length.
screaming_kebab_case
Formats the input string as a screaming kebab case name.
screaming_kebab_case_with_limit
Formats the input string as a screaming kebab case name and limits the length of the name.
screaming_snake_case
Formats the input string as a screaming snake case name.
screaming_snake_case_with_limit
Formats the input string as a screaming snake case name and limits the length of the name.
snake_case
Formats the input string as a snake case name.
snake_case_with_limit
Formats the input string as a snake case name and limits the length of the name.
username
Creates a username from the provided string.
username_with_limit
Creates a username from the provided string and limit.