Releases: rodgeraraujo/reddish
Releases · rodgeraraujo/reddish
v0.2.0
Features in this version:
-
“String” Methods
.camel_case([string=''])
: Convertsstring
to camel case..capitalize([string=''])
: Capitalize first char ofstring
..kebab_case([string=''])
: Convertsstring
to kebab case..snake_case([string=''])
: Convertsstring
to snake case..title_case([string=''])
: Convertsstring
to title case..pad([string=''], pad_length, pad_char=' ')
: Adds padding of lengthpad_length
to both ends ofstring
using optionalpad_char
, if nopad_char
is supplied thepad_char
defaults to ' '.pad_end([string=''], pad_length, pad_char=' ')
: Adds padding of lengthpad_length
to the end ofstring
using optionalpad_char
, if nopad_char
is supplied thepad_char
defaults to ' '.truncate([string=''], truncate_length)
: Truncatesstring
totruncate_length
.
-
“Array” Methods
.concat(vec: Vec<T>, values: Vec<T>)
: Creates a new array concatenating an array with any additional array values..difference(vec: Vec<T>, values: Vec<T>)
: Creates an array of values not included in the other given arrays using the same for equality comparisons..find_index(vec: Vec<T>, find: F)
: Returns the index of the first found element..find_last_index(vec: Vec<T>, find: F)
: Iterates over elements of collection from right to left, and returns the index of the found element..join(vec: Vec<T>, sep: &str)
: Converts all elements in array into a string separated by separator.