pub struct ReadLine<I = ReadLineInfo>where
I: ApplicationInfo<ContentId = ReadLineId>,{ /* private fields */ }
Expand description
Simple editor for collecting user input.
Implementations§
source§impl<I> ReadLine<I>where
I: ApplicationInfo<ContentId = ReadLineId>,
impl<I> ReadLine<I>where
I: ApplicationInfo<ContentId = ReadLineId>,
sourcepub fn new<B: BindingMachine<TerminalKey, Action<I>, RepeatType, EditContext> + 'static>(
bindings: B
) -> Result<Self, Error>
pub fn new<B: BindingMachine<TerminalKey, Action<I>, RepeatType, EditContext> + 'static>( bindings: B ) -> Result<Self, Error>
Create a new instance.
sourcepub fn readline(&mut self, prompt: Option<String>) -> ReadLineResult<I>
pub fn readline(&mut self, prompt: Option<String>) -> ReadLineResult<I>
Prompt the user for input.
Auto Trait Implementations§
impl<I = ReadLineInfo> !RefUnwindSafe for ReadLine<I>
impl<I = ReadLineInfo> !Send for ReadLine<I>
impl<I = ReadLineInfo> !Sync for ReadLine<I>
impl<I> Unpin for ReadLine<I>
impl<I = ReadLineInfo> !UnwindSafe for ReadLine<I>
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