pub struct InputBuffer { /* private fields */ }Implementations§
Source§impl InputBuffer
impl InputBuffer
pub fn new( flags: Flags, output_tx: Sender<String>, render_tx: Sender<Instant>, ) -> Self
pub fn is_empty(&self) -> bool
pub fn insert(&mut self, c: char)
pub fn previous(&mut self)
pub fn next(&mut self)
pub fn search_next(&mut self)
pub fn start_search(&mut self)
pub fn wrapped(&self, len: usize) -> InputBufferWrapped<'_>
pub fn clear(&mut self)
pub fn accept(&mut self) -> String
pub async fn handle_user_event(&mut self, event: &Event) -> bool
pub fn backspace(&mut self)
pub fn backspace_word(&mut self)
pub fn delete(&mut self)
pub fn cursor_end(&mut self)
pub fn cursor_home(&mut self)
pub fn cursor_back(&mut self)
pub fn cursor_forward(&mut self)
pub fn cursor_bword(&mut self)
pub fn cursor_fword(&mut self)
pub fn delete_forward(&mut self)
Auto Trait Implementations§
impl Freeze for InputBuffer
impl !RefUnwindSafe for InputBuffer
impl Send for InputBuffer
impl Sync for InputBuffer
impl Unpin for InputBuffer
impl !UnwindSafe for InputBuffer
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more