pub struct EditorAction {
pub text: String,
pub cursor: usize,
}Expand description
Snapshot of editor 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 EditorAction
impl Clone for EditorAction
Source§fn clone(&self) -> EditorAction
fn clone(&self) -> EditorAction
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 EditorAction
impl RefUnwindSafe for EditorAction
impl Send for EditorAction
impl Sync for EditorAction
impl Unpin for EditorAction
impl UnsafeUnpin for EditorAction
impl UnwindSafe for EditorAction
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