If the [Kind] is "Delim Like" (i.e. it is [Kind::Delim], [Kind::Colon], [Kind::Semicolon], [Kind::Comma], [Kind::LeftSquare], [Kind::RightSquare], [Kind::LeftParen], [Kind::RightParen], [Kind::LeftCurly], [Kind::RightCurly]) then this will return a [Some] with a [char] representing the value. For non-delim-like tokens this will return [None].
(&self)
| 727 | /// [Kind::RightCurly]) then this will return a [Some] with a [char] representing the value. |
| 728 | /// For non-delim-like tokens this will return [None]. |
| 729 | pub const fn char(&self) -> Option<char> { |
| 730 | if self.is_delim_like() { |
| 731 | return char::from_u32(self.1); |
| 732 | } |
| 733 | None |
| 734 | } |
| 735 | |
| 736 | /// The [Token] is a [Kind::Dimension] or [Kind::Number] and is an integer - i.e. it has no `.`. |
| 737 | #[inline] |