Struct clap_repl::ClapEditor
source · pub struct ClapEditor<C: Parser> { /* private fields */ }Implementations§
source§impl<C: Parser> ClapEditor<C>
impl<C: Parser> ClapEditor<C>
sourcepub fn new_with_prompt(prompt: &str) -> Self
pub fn new_with_prompt(prompt: &str) -> Self
Creates a new ClapEditor with the given prompt.
pub fn get_editor(&mut self) -> &mut Editor<ClapEditorHelper<C>, FileHistory>
pub fn read_command(&mut self) -> Option<C>
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for ClapEditor<C>
impl<C> !RefUnwindSafe for ClapEditor<C>
impl<C> Send for ClapEditor<C>where
C: Send,
impl<C> Sync for ClapEditor<C>where
C: Sync,
impl<C> Unpin for ClapEditor<C>where
C: Unpin,
impl<C> !UnwindSafe for ClapEditor<C>
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