kvarn_utils::prelude::str::pattern

Enum Utf8Pattern

source
pub enum Utf8Pattern<'a> {
    StringPattern(&'a [u8]),
    CharPattern(char),
}
🔬This is a nightly-only experimental API. (pattern)
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.

Variants§

§

StringPattern(&'a [u8])

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

Type returned by String and str types.

§

CharPattern(char)

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

Type returned by char types.

Trait Implementations§