Skip to main content

Module wtf8

Module wtf8 

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

Heap-allocated counterpart to core wtf8 module.

Re-exportsยง

use core::char::encode_utf8_raw; ๐Ÿ”’ Experimental
use core::hash::Hash; ๐Ÿ”’
use core::hash::Hash; ๐Ÿ”’
use core::hash::Hasher; ๐Ÿ”’
use core::fmt; ๐Ÿ”’
use core::mem; ๐Ÿ”’
use core::ops; ๐Ÿ”’
use core::str; ๐Ÿ”’
use crate::borrow::Cow; ๐Ÿ”’
use crate::borrow::ToOwned; ๐Ÿ”’
use crate::boxed::Box; ๐Ÿ”’
use crate::collections::TryReserveError; ๐Ÿ”’
use crate::rc::Rc; ๐Ÿ”’
use crate::string::String; ๐Ÿ”’
use crate::sync::Arc; ๐Ÿ”’
use crate::vec::Vec; ๐Ÿ”’

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.