(&self)
| 684 | /// The only token with an empty length is EOF, but this method is available for symmetry with `len()`. |
| 685 | #[inline] |
| 686 | pub const fn is_empty(&self) -> bool { |
| 687 | self.kind_bits() == Kind::Eof as u8 |
| 688 | } |
| 689 | |
| 690 | /// Returns the amount of characters (utf-8 code points) this Token represents in the underlying source text. |
| 691 | #[inline] |