๐ฌ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ยง
- 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.
- Wtf8Buf ๐ป
Experimental - An owned, growable string of well-formed WTF-8 data.
- Wtf8
Code ๐ปPoints 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
Wtf8Buffrom a borrowedWtf8. - to_
string_ ๐lossy Experimental - Lossily converts the string to UTF-8.
Returns a UTF-8
&strslice if the contents are well-formed in UTF-8.