pub struct AppliedChange {
pub new_text: String,
pub inverse: DocumentChange,
}Expand description
The result of successfully applying a DocumentChange to a source
string via DocumentChange::try_apply.
Fields§
§new_text: StringThe full document text after the change.
inverse: DocumentChangeA change that, applied to new_text, restores the
original document exactly. Its old_text and replacement text are
derived from the source by the library, never caller-authored.
Trait Implementations§
Source§impl Clone for AppliedChange
impl Clone for AppliedChange
Source§fn clone(&self) -> AppliedChange
fn clone(&self) -> AppliedChange
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 AppliedChange
impl Debug for AppliedChange
impl Eq for AppliedChange
Source§impl PartialEq for AppliedChange
impl PartialEq for AppliedChange
impl StructuralPartialEq for AppliedChange
Auto Trait Implementations§
impl Freeze for AppliedChange
impl RefUnwindSafe for AppliedChange
impl Send for AppliedChange
impl Sync for AppliedChange
impl Unpin for AppliedChange
impl UnsafeUnpin for AppliedChange
impl UnwindSafe for AppliedChange
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