pub struct TextChange {
pub old_text: String,
pub new_text: String,
}Expand description
Text change info for cursor/selection reconciliation.
Fields§
§old_text: StringThe text content before the change.
new_text: StringThe text content after the change.
Trait Implementations§
Source§impl Clone for TextChange
impl Clone for TextChange
Source§fn clone(&self) -> TextChange
fn clone(&self) -> TextChange
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 TextChange
impl Debug for TextChange
Source§impl PartialEq for TextChange
impl PartialEq for TextChange
Source§fn eq(&self, other: &TextChange) -> bool
fn eq(&self, other: &TextChange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TextChange
impl StructuralPartialEq for TextChange
Auto Trait Implementations§
impl Freeze for TextChange
impl RefUnwindSafe for TextChange
impl Send for TextChange
impl Sync for TextChange
impl Unpin for TextChange
impl UnsafeUnpin for TextChange
impl UnwindSafe for TextChange
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