π¬This is a nightly-only experimental API. (
wtf8_internals
)Expand description
Implementation of the WTF-8 encoding.
This library uses Rustβs type system to maintain
well-formedness,
like the String
and &str
types do for UTF-8.
Since WTF-8 must not be used for interchange, this library deliberately does not provide access to the underlying bytes of WTF-8 strings, nor can it decode WTF-8 from arbitrary bytes. WTF-8 strings can be obtained from UTF-8, UTF-16, or code points.
StructsΒ§
- Code
Point π»Experimental - A Unicode code point: from U+0000 to U+10FFFF.
- Encode
Wide π»Experimental - Generates a wide character sequence for potentially ill-formed UTF-16.
- Wtf8 π»
Experimental - A borrowed slice of well-formed WTF-8 data.
- Wtf8
Code π»Points Experimental - Iterator for the code points of a WTF-8 string.
FunctionsΒ§
- decode_
surrogate πExperimental - slice_
error_ πfail Experimental - Copied from core::str::raw::slice_error_fail
- slice_
unchecked π βExperimental - Copied from core::str::raw::slice_unchecked