Emit a Str Token
(&mut self, s: &str)
| 26 | impl Bytes { |
| 27 | /// Emit a Str Token |
| 28 | pub fn identifier(&mut self, s: &str) { |
| 29 | if s.contains('\"') { |
| 30 | panic!("An identifier should not contain `\"`"); |
| 31 | } |
| 32 | self.push_str("\" "); |
| 33 | self.push_slice(s.as_bytes()); |
| 34 | self.push_str("\""); |
| 35 | } |
| 36 | |
| 37 | /// Emit a Int Token |
| 38 | pub fn integer<I: Integer>(&mut self, i: I) { |
no test coverage detected