Enum regex_syntax::ast::HexLiteralKind
source · pub enum HexLiteralKind {
X,
UnicodeShort,
UnicodeLong,
}
Expand description
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.
Implementations§
Trait Implementations§
source§impl Clone for HexLiteralKind
impl Clone for HexLiteralKind
source§fn clone(&self) -> HexLiteralKind
fn clone(&self) -> HexLiteralKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HexLiteralKind
impl Debug for HexLiteralKind
source§impl PartialEq<HexLiteralKind> for HexLiteralKind
impl PartialEq<HexLiteralKind> for HexLiteralKind
source§fn eq(&self, other: &HexLiteralKind) -> bool
fn eq(&self, other: &HexLiteralKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.