(&self)
| 207 | |
| 208 | impl Kind { |
| 209 | pub fn is_string(&self) -> bool { |
| 210 | matches!( |
| 211 | self, |
| 212 | Self::StringLiteral | Self::RawBytes | Self::Bytes | Self::FStringStart |
| 213 | ) |
| 214 | } |
| 215 | pub fn is_unary_op(&self) -> bool { |
| 216 | matches!(self, Kind::Not | Kind::BitNot | Kind::Minus | Kind::Plus) |
| 217 | } |