pub struct SimpleEdit {
pub start: usize,
pub end: usize,
pub new_text: String,
}Expand description
Checkpointed incremental parser with simple edit tracking. Simple edit structure for demos
Fields§
§start: usize§end: usize§new_text: StringImplementations§
Source§impl SimpleEdit
impl SimpleEdit
Sourcepub fn to_original_edit(&self) -> Edit
pub fn to_original_edit(&self) -> Edit
Convert to original Edit format if needed
Trait Implementations§
Source§impl Clone for SimpleEdit
impl Clone for SimpleEdit
Source§fn clone(&self) -> SimpleEdit
fn clone(&self) -> SimpleEdit
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 moreAuto Trait Implementations§
impl Freeze for SimpleEdit
impl RefUnwindSafe for SimpleEdit
impl Send for SimpleEdit
impl Sync for SimpleEdit
impl Unpin for SimpleEdit
impl UnsafeUnpin for SimpleEdit
impl UnwindSafe for SimpleEdit
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