☰
In console
Structs
AnsiCodeIterator
Emoji
Style
StyledObject
Term
TermFeatures
Enums
Alignment
Attribute
Color
Key
TermFamily
TermTarget
Functions
colors_enabled
colors_enabled_stderr
measure_text_width
pad_str
pad_str_with
set_colors_enabled
set_colors_enabled_stderr
strip_ansi_codes
style
truncate_str
user_attended
user_attended_stderr
?
Function
console
::
strip_ansi_codes
source
·
[
−
]
pub fn strip_ansi_codes(s: &
str
) ->
Cow
<'_,
str
>
Expand description
Helper function to strip ansi codes.