pub struct LineBuffer { /* private fields */ }Expand description
A buffer for managing lines of text in the REPL.
LineBuffer handles single and multi-line input, cursor positioning,
and basic editing operations like insertion and backspace.
Implementations§
Source§impl LineBuffer
impl LineBuffer
Sourcepub fn backspace(&mut self) -> bool
pub fn backspace(&mut self) -> bool
Removes the character before the current cursor position (backspace).
Returns true if a character or line was removed, false if the
buffer was already at the very beginning.
Auto Trait Implementations§
impl Freeze for LineBuffer
impl RefUnwindSafe for LineBuffer
impl Send for LineBuffer
impl Sync for LineBuffer
impl Unpin for LineBuffer
impl UnsafeUnpin for LineBuffer
impl UnwindSafe for LineBuffer
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