Crate cs_utils

Source

Modules§

constants
futures
test
traits

Structs§

LogFormatter
Formatter aims to help to write nice log output.
WriteFormatter

Functions§

drain_filter
Drain and filter at the same time, accepts a mutable vector ref and predicate. The predicate receives a vector element ref for the current iteration and in-place removes the element from the vector, if predicate returns true. Returns and array of removed elements back.
random_bool
Generate a random boolean.
random_number
Generate a random number in (min, max] range.
random_str
Generate a random string, length characters long.
random_str_rg
Generate a random string of random length.
swap
Swap two items.