Expand description
Structs§
- Debounce
Debouncestruct enables calling the provided closure after a specified delay. The delay is reset if another call is made before the delay duration has passed. It holds anOptionfor a sender which is used to send messages to the worker thread. It also holds anOptionfor a JoinHandle for the worker thread. Thedebounce_configstores the closure and delay information.
Functions§
- capitalize
- Converts the first character of the input string to uppercase and the remaining characters to lowercase.
- debounce
- Debounce function takes a closure and a delay, and returns a
Debouncestruct. - deburr
- Deburrs a string by converting Latin-1 Supplement and Latin Extended-A letters to basic Latin letters and removing combining diacritical marks.
- ends_
with - Checks if
stringends with the giventargetstring. - get
- Gets the value at
pathofobject. If the resolved value isNone, thedefault_valueis returned in its place. - is_
number - The
is_numberfunction takes a string and returns a boolean value. It checks if the input string can be parsed into a f64 number excluding the special f64 number cases (i.e., “inf”, “-inf”, “+inf”, “infinity”, “-infinity”, “+infinity”, “nan”). - kebab_
case - Converts a
Stringto kebab case. - map_
values - Creates a new HashMap with the same keys as
mapand values generated by running each key-value pair ofmapthrough themapperfunction. - merge
- Merges two objects recursively, assigning properties from source objects to the destination object.
- pick
- Creates a new HashMap composed of the picked properties from the source HashMap.
- round
- Computes
numberrounded toprecision. - set
- Sets the value at
keyofobject. If thekeydoesn’t exist, it’s created. - words
- Split the input string into an array of its words.