Take the accumulated buffer contents and deactivate. Returns `None` if the buffer was never activated.
()
| 76 | /// Take the accumulated buffer contents and deactivate. Returns |
| 77 | /// `None` if the buffer was never activated. |
| 78 | pub fn take() -> Option<DdlBuffer> { |
| 79 | ACTIVE_BUFFER.with(|b| b.borrow_mut().take()) |
| 80 | } |
| 81 | |
| 82 | /// Deactivate and discard the buffer without returning its contents. |
| 83 | pub fn discard() { |