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]
impl HexLiteralKind
pub fn digits(&self) -> u32
[src]
pub fn digits(&self) -> u32
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]
impl Clone for HexLiteralKind
fn clone(&self) -> HexLiteralKind
[src]
fn clone(&self) -> HexLiteralKind
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for HexLiteralKind
[src]
impl Debug for HexLiteralKind
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for HexLiteralKind
[src]
impl Eq for HexLiteralKind
impl PartialEq for HexLiteralKind
[src]
impl PartialEq for HexLiteralKind
Auto Trait Implementations
impl Send for HexLiteralKind
impl Send for HexLiteralKind
impl Sync for HexLiteralKind
impl Sync for HexLiteralKind