pub struct EditAction {
pub text: String,
pub cursor: usize,
}Expand description
Snapshot of input state for undo/redo.
Fields§
§text: StringThe full text buffer at the time of the snapshot.
cursor: usizeCursor position in grapheme indices.
Trait Implementations§
Source§impl Clone for EditAction
impl Clone for EditAction
Source§fn clone(&self) -> EditAction
fn clone(&self) -> EditAction
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 moreAuto Trait Implementations§
impl Freeze for EditAction
impl RefUnwindSafe for EditAction
impl Send for EditAction
impl Sync for EditAction
impl Unpin for EditAction
impl UnsafeUnpin for EditAction
impl UnwindSafe for EditAction
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