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.
(&self)
| 702 | /// used without brackets. When used with brackets, there is no |
| 703 | /// restriction on the number of digits. |
| 704 | pub fn digits(&self) -> u32 { |
| 705 | match *self { |
| 706 | HexLiteralKind::X => 2, |
| 707 | HexLiteralKind::UnicodeShort => 4, |
| 708 | HexLiteralKind::UnicodeLong => 8, |
| 709 | } |
| 710 | } |
| 711 | } |
| 712 | |
| 713 | /// A single character class expression. |