pub struct EditSnapshot {
pub value: String,
pub edit: Edit,
}Expand description
A field’s value and where the caret was in it: what one step of undo restores.
Fields§
§value: StringThe whole value.
edit: EditThe caret, the selection anchor, and any composing region.
Implementations§
Trait Implementations§
Source§impl Clone for EditSnapshot
impl Clone for EditSnapshot
Source§impl Debug for EditSnapshot
impl Debug for EditSnapshot
Source§impl Default for EditSnapshot
impl Default for EditSnapshot
impl Eq for EditSnapshot
Source§impl PartialEq for EditSnapshot
impl PartialEq for EditSnapshot
impl StructuralPartialEq for EditSnapshot
Auto Trait Implementations§
impl Freeze for EditSnapshot
impl RefUnwindSafe for EditSnapshot
impl Send for EditSnapshot
impl Sync for EditSnapshot
impl Unpin for EditSnapshot
impl UnsafeUnpin for EditSnapshot
impl UnwindSafe for EditSnapshot
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