pub struct UndoHistoryTextEdit {
pub start_before: usize,
pub start_after: usize,
pub deleted_text: String,
pub inserted_text: String,
}Expand description
A single persisted text edit in an undo/redo step.
Fields§
§start_before: usizeStart offset in the document before applying the edit.
start_after: usizeStart offset in the document after applying the edit.
deleted_text: StringDeleted text (from the pre-edit document).
inserted_text: StringInserted text (from the post-edit document).
Trait Implementations§
Source§impl Clone for UndoHistoryTextEdit
impl Clone for UndoHistoryTextEdit
Source§fn clone(&self) -> UndoHistoryTextEdit
fn clone(&self) -> UndoHistoryTextEdit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UndoHistoryTextEdit
impl Debug for UndoHistoryTextEdit
impl Eq for UndoHistoryTextEdit
Source§impl PartialEq for UndoHistoryTextEdit
impl PartialEq for UndoHistoryTextEdit
Source§fn eq(&self, other: &UndoHistoryTextEdit) -> bool
fn eq(&self, other: &UndoHistoryTextEdit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UndoHistoryTextEdit
Auto Trait Implementations§
impl Freeze for UndoHistoryTextEdit
impl RefUnwindSafe for UndoHistoryTextEdit
impl Send for UndoHistoryTextEdit
impl Sync for UndoHistoryTextEdit
impl Unpin for UndoHistoryTextEdit
impl UnsafeUnpin for UndoHistoryTextEdit
impl UnwindSafe for UndoHistoryTextEdit
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