pub struct TextEdit {
pub path: Vec<String>,
pub before: String,
pub after: String,
pub inserted: Vec<(usize, usize, String)>,
pub deleted: Vec<(usize, usize, String)>,
}Expand description
One text a change typed into: where it sits under the object asked about, and what the change did to it.
Fields§
§path: Vec<String>The map keys from the object spliced_texts was given down to this text, in
reading order: a rich text field’s blocks, its paragraph’s id, text.
before: StringWhat the text read before the change and what it reads after it, whole: a reader that shows a few words around the change cuts them itself.
after: String§inserted: Vec<(usize, usize, String)>What the change inserted: the character range of after it wrote, and its text.
deleted: Vec<(usize, usize, String)>What the change took away: the character range of before it deleted, and its text.
Implementations§
Trait Implementations§
impl Eq for TextEdit
impl StructuralPartialEq for TextEdit
Auto Trait Implementations§
impl Forget for TextEdit
impl Freeze for TextEdit
impl Move for TextEdit
impl RefUnwindSafe for TextEdit
impl Send for TextEdit
impl Sync for TextEdit
impl Unpin for TextEdit
impl UnsafeUnpin for TextEdit
impl UnwindSafe for TextEdit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more