pub struct EditBatchSummary {
pub changed_range: Range<usize>,
pub cursor: Pos,
pub edits_applied: usize,
}Expand description
Summary returned by batched edit application.
Fields§
§changed_range: Range<usize>Conservative changed character range after applying the batch.
cursor: PosCursor position after the last applied edit.
edits_applied: usizeNumber of edits applied from the input slice.
Trait Implementations§
Source§impl Clone for EditBatchSummary
impl Clone for EditBatchSummary
Source§fn clone(&self) -> EditBatchSummary
fn clone(&self) -> EditBatchSummary
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 EditBatchSummary
impl Debug for EditBatchSummary
Source§impl PartialEq for EditBatchSummary
impl PartialEq for EditBatchSummary
impl Eq for EditBatchSummary
impl StructuralPartialEq for EditBatchSummary
Auto Trait Implementations§
impl Freeze for EditBatchSummary
impl RefUnwindSafe for EditBatchSummary
impl Send for EditBatchSummary
impl Sync for EditBatchSummary
impl Unpin for EditBatchSummary
impl UnsafeUnpin for EditBatchSummary
impl UnwindSafe for EditBatchSummary
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