Enum HexLiteralKind
pub enum HexLiteralKind
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
\xprefix. When used without brackets, this form is limited to two digits.-
UnicodeShort A
\uprefix. When used without brackets, this form is limited to four digits.-
UnicodeLong A
\Uprefix. When used without brackets, this form is limited to eight digits.
Implementations
impl HexLiteralKind
fn digits(&self) -> u32The 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
fn clone(&self) -> Self
impl Debug for HexLiteralKind
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for HexLiteralKind
impl PartialEq for HexLiteralKind
fn eq(&self, other: &Self) -> bool