Expand description
Apply colours and styling to strings.
Enums
Functions
- Return a copy of
linewith styles applied to all the spans specified. - Find the largest byte offset in
sthat gives the longest starting substring whose display width does not exceedwidth. - header 🔒
- Style
sas an error and write to stderr. - Style
sas a warning and write to stderr. - Return a copy of
srcwith all the tab characters replaced bytab_widthstrings. - Split
line(from the source code) into multiple lines ofmax_len(i.e. word wrapping), and applystylesto each part according to its original position inline. - Split a string into parts whose display length does not exceed
max_width. - Apply the
Styles to the spans specified. Return a vec of the styled strings, including trailing newlines.