Skip to main content

Module methods

Module methods 

Source
Expand description

impl char {}

Re-exportsยง

use crate::panic::const_panic; ๐Ÿ”’ Experimental
use crate::slice; ๐Ÿ”’
use crate::str::from_utf8_unchecked_mut; ๐Ÿ”’
use crate::ub_checks::assert_unsafe_precondition; ๐Ÿ”’ Experimental
use crate::unicode; ๐Ÿ”’ Experimental
use crate::unicode::conversions; ๐Ÿ”’ Experimental
use super::*; ๐Ÿ”’

Structsยง

EscapeDebugExtArgs ๐Ÿ”’

Functionsยง

len_utf8 ๐Ÿ”’
len_utf16 ๐Ÿ”’
encode_utf8_raw ๐Ÿ‘ป Experimental
Encodes a raw u32 value as UTF-8 into the provided byte buffer, and then returns the subslice of the buffer that contains the encoded character.
encode_utf8_raw_unchecked ๐Ÿ‘ป โš Experimental
Encodes a raw u32 value as UTF-8 into the byte buffer pointed to by dst.
encode_utf16_raw ๐Ÿ‘ป Experimental
Encodes a raw u32 value as native endian UTF-16 into the provided u16 buffer, and then returns the subslice of the buffer that contains the encoded character.