const RAINBOW_ESCAPE_SEQUENCE: = ;
/// Colorize a string into a rainbow-colored string.
///
/// This function split a string into a vector of chars, and then colorize each char
/// to the index of the rainbow color. If the char index is out of rainbow color range,
/// it will simply wrap it back to the beginning.
///
/// # Examples
/// ```
/// let rainbow_string = rainbow("Rainbow!!");
/// assert_eq!(rainbow_string, "\u{1b}[31mR\u{1b}[33ma\u{1b}[32mi\u{1b}[36mn\u{1b}[34mb\u{1b}[35mo\u{1b}[31mw\u{1b}[33m!\u{1b}[32m!\u{1b}[0m");
/// // that is pretty long assertion...
/// ```