Deactivate and discard the buffer without returning its contents.
()
| 81 | |
| 82 | /// Deactivate and discard the buffer without returning its contents. |
| 83 | pub fn discard() { |
| 84 | ACTIVE_BUFFER.with(|b| { |
| 85 | let _ = b.borrow_mut().take(); |
| 86 | }); |
| 87 | } |
| 88 | |
| 89 | /// Returns `true` if a DDL buffer is currently active on this thread. |
| 90 | pub fn is_active() -> bool { |