pub struct Options<'a> {
pub separate_before_non_alphabets: bool,
pub separate_after_non_alphabets: bool,
pub separators: &'a str,
pub keep: &'a str,
}
Expand description
Is a struct that represents options for case conversion of strings.
The separate_before_non_alphabets
field specifies whether to treat the
beginning of a sequence of non-alphabetic characters as a word boundary.
The separate_after_non_alphabets
field specifies whether to treat the
end of a sequence of non-alphabetic characters as a word boundary.
The separators
field specifies the set of characters to be treated as
word separators and removed from the result string.
The keep
field specifies the set of characters not to be treated as word
separators and kept in the result string.
Alphanumeric characters specified in separators
and keep
are ignored.
If both separators
and keep
are specified, separators
takes precedence
and keep
is ignored.
Fields§
§separate_before_non_alphabets: bool
Specifies whether to treat the beginning of a sequence of non-alphabetic characters as a word boundary.
separate_after_non_alphabets: bool
Specifies whether to treat the end of a sequence of non-alphabetic characters as a word boundary.
separators: &'a str
Specifies the set of characters to be treated as word separators and removed from the result string. Alphanumeric characters are ignored.
keep: &'a str
Specifies the set of characters not to be treated as word separators and kept in the result string. Alphanumeric characters are ignored.