Docs.rs
j-cli-12.1.23
j-cli 12.1.23
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
LingoJack
Dependencies
async-openai ^0.33
normal
chrono ^0.4
normal
clap ^4
normal
colored ^3
normal
cpal ^0.17
normal
crossterm ^0.28.0
normal
dirs ^6
normal
futures ^0.3
normal
hound ^3.5
normal
indicatif ^0.18.3
normal
libc ^0.2
normal
pulldown-cmark ^0.13.0
normal
ratatui ^0.29.0
normal
rustyline ^17.0.2
normal
serde ^1
normal
serde_json ^1
normal
serde_yaml ^0.9
normal
termimad ^0.34.1
normal
tokio ^1
normal
tui-textarea ^0.7
normal
unicode-width ^0.2
normal
url ^2
normal
whisper-rs ^0.15
normal
Versions
68.46%
of the crate is documented
Go to latest version
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
display_width
j_cli
12.1.23
In j_
cli::
command::
chat::
render
j_cli
::
command
::
chat
::
render
Function
display_
width
Copy item path
Source
pub fn display_width(s: &
str
) ->
usize
Expand description
计算字符串的显示宽度(使用 unicode-width crate,比手动范围匹配更准确)