Module rustc_unicode::str [] [src]

Unstable

Structs

SplitWhitespace

An iterator over the non-whitespace substrings of a string, separated by any amount of whitespace.

GraphemeIndices [Unstable]

External iterator for grapheme clusters and byte offsets.

Graphemes [Unstable]

External iterator for a string's grapheme clusters.

Utf16Encoder [Unstable]

Iterator adaptor for encoding char`char`s to UTF-16.

Utf16Items [Unstable]

An iterator that decodes UTF-16 encoded codepoints from a vector of u16`u16`s.

Enums

Utf16Item [Unstable]

The possibilities for values decoded from a u16`u16` stream.

Traits

UnicodeStr [Unstable]

Methods for Unicode string slices

Functions

is_utf16 [Unstable]

Determines if a vector of u16`u16` contains valid UTF-16

utf16_items [Unstable]

Create an iterator over the UTF-16 encoded codepoints in v`v, returning invalid surrogates as`, returning invalid surrogates as LoneSurrogate`LoneSurrogate`s.

utf8_char_width [Unstable]

Given a first byte, determine how many bytes are in this UTF-8 character

Type Definitions

Words [Deprecated]