pub struct TextEdit<P> {
pub start: P,
pub end: P,
pub removed: String,
pub inserted: String,
pub new_end: P,
}Expand description
一次替换操作的结果。与 undo 栈条目解耦:buffer 自行决定是否记录 undo。
Fields§
§start: P§end: P§removed: String§inserted: String§new_end: PTrait Implementations§
impl<P: Eq> Eq for TextEdit<P>
impl<P: PartialEq> StructuralPartialEq for TextEdit<P>
Auto Trait Implementations§
impl<P> Forget for TextEdit<P>
impl<P> Freeze for TextEdit<P>
impl<P> Move for TextEdit<P>
impl<P> RefUnwindSafe for TextEdit<P>where
P: RefUnwindSafe,
impl<P> Send for TextEdit<P>
impl<P> Sync for TextEdit<P>
impl<P> Unpin for TextEdit<P>
impl<P> UnsafeUnpin for TextEdit<P>
impl<P> UnwindSafe for TextEdit<P>where
P: UnwindSafe,
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