(&self, c: Cursor, atom: &'static dyn DynAtomSet)
| 189 | } |
| 190 | |
| 191 | pub fn equals_atom(&self, c: Cursor, atom: &'static dyn DynAtomSet) -> bool { |
| 192 | let mut cursor_bits = c.atom_bits(); |
| 193 | if cursor_bits == 0 { |
| 194 | if c != KindSet::ATOM_LIKE { |
| 195 | return false; |
| 196 | } |
| 197 | let source_cursor = self.to_source_cursor(c); |
| 198 | cursor_bits = atom.str_to_bits(&source_cursor.parse(self.bump)); |
| 199 | } |
| 200 | cursor_bits == atom.bits() |
| 201 | } |
| 202 | |
| 203 | pub fn to_atom<A: AtomSet + PartialEq>(&self, c: Cursor) -> A { |
| 204 | let bits = c.atom_bits(); |
no test coverage detected