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