MCPcopy Create free account
hub / github.com/Glyphack/enderpy / is_string

Method is_string

parser/src/token.rs:209–214  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

207
208impl 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 }

Callers 1

parse_atomMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected