Enum regex_syntax::ast::HexLiteralKind [] [src]

pub enum HexLiteralKind {
    X,
    UnicodeShort,
    UnicodeLong,
}

The type of a Unicode hex literal.

Note that all variants behave the same when used with brackets. They only differ when used without brackets in the number of hex digits that must follow.

Variants

A \x prefix. When used without brackets, this form is limited to two digits.

A \u prefix. When used without brackets, this form is limited to four digits.

A \U prefix. When used without brackets, this form is limited to eight digits.

Methods

impl HexLiteralKind
[src]

[src]

The number of digits that must be used with this literal form when used without brackets. When used with brackets, there is no restriction on the number of digits.

Trait Implementations

impl Clone for HexLiteralKind
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for HexLiteralKind
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for HexLiteralKind
[src]

impl PartialEq for HexLiteralKind
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

Auto Trait Implementations