pub struct TsEdit {
pub start_byte: usize,
pub old_end_byte: usize,
pub new_end_byte: usize,
pub start_point: (usize, usize),
pub old_end_point: (usize, usize),
pub new_end_point: (usize, usize),
}Expand description
A typed, byte-based description of one contiguous splice, for incremental
tree-sitter reparse. tree-sitter’s native unit is the byte offset + a
(row, byte-column) point, so this converts from a plain source splice —
no tree-sitter type crosses the caller boundary.
Fields§
§start_byte: usize§old_end_byte: usize§new_end_byte: usize§start_point: (usize, usize)(row, byte-column) of the splice start (identical in old + new).
old_end_point: (usize, usize)§new_end_point: (usize, usize)Implementations§
Trait Implementations§
impl Copy for TsEdit
impl Eq for TsEdit
impl StructuralPartialEq for TsEdit
Auto Trait Implementations§
impl Freeze for TsEdit
impl RefUnwindSafe for TsEdit
impl Send for TsEdit
impl Sync for TsEdit
impl Unpin for TsEdit
impl UnsafeUnpin for TsEdit
impl UnwindSafe for TsEdit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more