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
X
A \x
prefix. When used without brackets, this form is limited to
two digits.
UnicodeShort
A \u
prefix. When used without brackets, this form is limited to
four digits.
UnicodeLong
A \U
prefix. When used without brackets, this form is limited to
eight digits.
Methods
impl HexLiteralKind
[src]
pub fn digits(&self) -> u32
[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]
fn clone(&self) -> HexLiteralKind
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for HexLiteralKind
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more