Utf8Pattern in std::str::pattern - Rust (original) (raw)

pub enum Utf8Pattern<'a> {
    StringPattern(&'a [u8]),
    CharPattern(char),
}

🔬This is a nightly-only experimental API. (pattern #27721)

Expand description

Result of calling Pattern::as_utf8_pattern(). Can be used for inspecting the contents of a Pattern in cases where the underlying representation can be represented as UTF-8.

§

🔬This is a nightly-only experimental API. (pattern #27721)

Type returned by String and str types.

§

🔬This is a nightly-only experimental API. (pattern #27721)

Type returned by char types.

§

§

§

§

§

§