(&self, span: impl ToSpan, css: &str)
| 166 | } |
| 167 | |
| 168 | pub fn replace_parsed<T>(&self, span: impl ToSpan, css: &str) |
| 169 | where |
| 170 | T: Parse<'a> + ToCursors, |
| 171 | { |
| 172 | let owned = self.bump.alloc_str(css); |
| 173 | self.replace(span, self.parse_value::<T>(owned)); |
| 174 | } |
| 175 | |
| 176 | pub fn commit_overlays(&self) -> Result<(), CommitError> { |
| 177 | let mut edits = self.edits.borrow_mut(); |