Module wtf8

Module wtf8 

Source
๐Ÿ”ฌThis is a nightly-only experimental API. (wtf8_internals)
Expand description

Heap-allocated counterpart to core wtf8 module.

Structsยง

CodePoint ๐Ÿ‘ป Experimental
A Unicode code point: from U+0000 to U+10FFFF.
EncodeWide ๐Ÿ‘ป Experimental
Generates a wide character sequence for potentially ill-formed UTF-16.
Wtf8 ๐Ÿ‘ป Experimental
A borrowed slice of well-formed WTF-8 data.
Wtf8Buf ๐Ÿ‘ป Experimental
An owned, growable string of well-formed WTF-8 data.
Wtf8CodePoints ๐Ÿ‘ป Experimental
Iterator for the code points of a WTF-8 string.

Functionsยง

clone_into ๐Ÿ”’ Experimental
decode_surrogate_pair ๐Ÿ”’ Experimental
to_owned ๐Ÿ”’ Experimental
Creates an owned Wtf8Buf from a borrowed Wtf8.
to_string_lossy ๐Ÿ”’ Experimental
Lossily converts the string to UTF-8. Returns a UTF-8 &str slice if the contents are well-formed in UTF-8.