Registry / utility / utf8-width

utf8-width

JSON →
library0.1.8rscratesunverified

Determine the display width of a UTF-8 character by providing its first byte.

# Cargo.toml [dependencies] utf8-width = "0.1.8"
INSTALL
IMPORT
SIG · UTF8-WIDTH
U
utf8-width
utilityrustv0.1.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Utf8Width
use utf8_width::Utf8Width;

Get the display width of a character

use utf8_width::Utf8Width; fn main() { let width = 'A'.width(); println!("Width of 'A': {}", width); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.8latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
utf8-width — cargo add utf8-width · libregistry