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§impl Debug for UndoHistoryTextEdit
impl Debug for UndoHistoryTextEdit
impl Eq for UndoHistoryTextEdit
Source§impl PartialEq for UndoHistoryTextEdit
impl PartialEq for UndoHistoryTextEdit
impl StructuralPartialEq for UndoHistoryTextEdit
Auto Trait Implementations§
impl Forget for UndoHistoryTextEdit
impl Freeze for UndoHistoryTextEdit
impl Move for UndoHistoryTextEdit
impl RefUnwindSafe for UndoHistoryTextEdit
impl Send for UndoHistoryTextEditwhere
RawVecInner: Send,
impl Sync for UndoHistoryTextEditwhere
RawVecInner: Sync,
impl Unpin for UndoHistoryTextEdit
impl UnsafeUnpin for UndoHistoryTextEdit
impl UnwindSafe for UndoHistoryTextEditwhere
RawVecInner: UnwindSafe,
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