pub struct Edit {
pub start_byte: usize,
pub old_end_byte: usize,
pub new_end_byte: usize,
pub start_position: (usize, usize),
pub old_end_position: (usize, usize),
pub new_end_position: (usize, usize),
}Expand description
A source edit covering all changes, using UTF-8 byte offsets and zero-based byte columns.
Fields§
§start_byte: usize§old_end_byte: usize§new_end_byte: usize§start_position: (usize, usize)§old_end_position: (usize, usize)§new_end_position: (usize, usize)Trait Implementations§
Auto Trait Implementations§
impl Forget for Edit
impl Freeze for Edit
impl Move for Edit
impl RefUnwindSafe for Edit
impl Send for Edit
impl Sync for Edit
impl Unpin for Edit
impl UnsafeUnpin for Edit
impl UnwindSafe for Edit
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