☰
In console
Structs
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
style
truncate_str
user_attended
user_attended_stderr
?
Function
console
::
measure_text_width
source
·
[
−
]
pub fn measure_text_width(s: &
str
) ->
usize
Expand description
Measure the width of a string in terminal characters.