Crate text_manager
source ·Modules
There are several ways to index into a String: UTF-8
byte
indices (Rust uses these) or Unicode
code points, which are encoding-independent. The TextField
protocol uses the latter, and so
this module has some helper functions to convert indices between these two representations. The
legacy TextInputState
uses UTF-16 code units as indices, so there are also functions that
convert one of these TextInputState
s into one that uses UTF-8 byte indices instead, or
vice-versa.keyboard 🔒