pub struct AsyncEditor { /* private fields */ }Expand description
AsyncEditor - Multiline Terminal Editor with simultaneous stdout
AsyncEditor is a functional multline editor supporting standard control keys, while simultaneously supporting stdout printing on the upper portion of the screen.
Extensible keyboard events are bubbled out for special functions.
Implementations§
Source§impl AsyncEditor
impl AsyncEditor
pub fn new( initial_content: &str, split_prompt: String, print_height: f32, tabstop: u8, ) -> Result<(Self, SharedStdout)>
pub fn flush(&mut self) -> Result<()>
Sourcepub async fn async_editor(&mut self) -> Result<EditorEvent>
pub async fn async_editor(&mut self) -> Result<EditorEvent>
Polling function for async_editor, manages all input and output. Returns either an EditorEvent or an Error
pub fn text(&self) -> String
Auto Trait Implementations§
impl Freeze for AsyncEditor
impl !RefUnwindSafe for AsyncEditor
impl !Send for AsyncEditor
impl !Sync for AsyncEditor
impl Unpin for AsyncEditor
impl !UnwindSafe for AsyncEditor
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