tree_sitter::ffi

Function ts_tree_cursor_reset_to

Source
pub unsafe extern "C" fn ts_tree_cursor_reset_to(
    dst: *mut TSTreeCursor,
    src: *const TSTreeCursor,
)
Expand description

Re-initialize a tree cursor to the same position as another cursor.

Unlike ts_tree_cursor_reset, this will not lose parent information and allows reusing already created cursors.