Function yrs::ydoc_clear
source · #[no_mangle]
pub unsafe extern "C" fn ydoc_clear(
doc: *mut Doc,
parent_txn: *mut Transaction
)
Expand description
Destroys current document, sending a ‘destroy’ event and clearing up all the event callbacks registered.