#[repr(C)]pub struct TSInputEdit {
pub start_byte: u32,
pub old_end_byte: u32,
pub new_end_byte: u32,
pub start_point: TSPoint,
pub old_end_point: TSPoint,
pub new_end_point: TSPoint,
}Expand description
A summary of a change to a text document.
The start_byte and start_point values must be less than or equal to the
old_end_byte and old_end_point values, respectively. Passing an edit
that violates these invariants may produce nonsensical results.
Fields§
§start_byte: u32§old_end_byte: u32§new_end_byte: u32§start_point: TSPoint§old_end_point: TSPoint§new_end_point: TSPointTrait Implementations§
Source§impl Clone for TSInputEdit
impl Clone for TSInputEdit
Source§fn clone(&self) -> TSInputEdit
fn clone(&self) -> TSInputEdit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TSInputEdit
impl Debug for TSInputEdit
Source§impl From<&InputEdit> for TSInputEdit
impl From<&InputEdit> for TSInputEdit
Source§fn from(val: &InputEdit) -> TSInputEdit
fn from(val: &InputEdit) -> TSInputEdit
Converts to this type from the input type.
impl Copy for TSInputEdit
Auto Trait Implementations§
impl Freeze for TSInputEdit
impl RefUnwindSafe for TSInputEdit
impl Send for TSInputEdit
impl Sync for TSInputEdit
impl Unpin for TSInputEdit
impl UnsafeUnpin for TSInputEdit
impl UnwindSafe for TSInputEdit
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