pub enum ChangeContext<'a> {
Insert {
position: GridIndex,
text: &'a str,
inserted_br_indexes: &'a [usize],
},
Delete {
start: GridIndex,
end: GridIndex,
},
Replace {
start: GridIndex,
end: GridIndex,
text: &'a str,
inserted_br_indexes: &'a [usize],
},
ReplaceFull {
text: &'a str,
},
}Expand description
Information related to a specific change performed on a Text.
Variants§
Trait Implementations§
Source§impl<'a> Clone for ChangeContext<'a>
impl<'a> Clone for ChangeContext<'a>
Source§fn clone(&self) -> ChangeContext<'a>
fn clone(&self) -> ChangeContext<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for ChangeContext<'a>
impl<'a> RefUnwindSafe for ChangeContext<'a>
impl<'a> Send for ChangeContext<'a>
impl<'a> Sync for ChangeContext<'a>
impl<'a> Unpin for ChangeContext<'a>
impl<'a> UnwindSafe for ChangeContext<'a>
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