pub struct VimLineEditor { /* private fields */ }Expand description
A vim-style line editor.
Implements modal editing with Normal, Insert, Visual, and OperatorPending modes. Designed for single “one-shot” inputs that may span multiple lines.
Implementations§
Trait Implementations§
Source§impl Clone for VimLineEditor
impl Clone for VimLineEditor
Source§fn clone(&self) -> VimLineEditor
fn clone(&self) -> VimLineEditor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VimLineEditor
impl Debug for VimLineEditor
Source§impl Default for VimLineEditor
impl Default for VimLineEditor
Source§impl LineEditor for VimLineEditor
impl LineEditor for VimLineEditor
Source§fn handle_key(&mut self, key: Key, text: &str) -> EditResult
fn handle_key(&mut self, key: Key, text: &str) -> EditResult
Process a key event, returning edits to apply and any action requested. Read more
Source§fn selection(&self) -> Option<Range<usize>>
fn selection(&self) -> Option<Range<usize>>
Selection range for highlighting, if in visual mode.
Source§fn set_cursor(&mut self, pos: usize, text: &str)
fn set_cursor(&mut self, pos: usize, text: &str)
Set cursor position, clamped to valid bounds within text.
Auto Trait Implementations§
impl Freeze for VimLineEditor
impl RefUnwindSafe for VimLineEditor
impl Send for VimLineEditor
impl Sync for VimLineEditor
impl Unpin for VimLineEditor
impl UnwindSafe for VimLineEditor
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