pub struct ClapEditorBuilder<C: Parser + Send + Sync + 'static> { /* private fields */ }
Implementations§
Source§impl<C: Parser + Send + Sync + 'static> ClapEditorBuilder<C>
impl<C: Parser + Send + Sync + 'static> ClapEditorBuilder<C>
pub fn with_prompt(self, prompt: Box<dyn Prompt>) -> Self
pub fn with_edit_mode(self, edit_mode: Box<dyn EditMode>) -> Self
pub fn with_editor_hook( self, hook: impl FnOnce(Reedline) -> Reedline + 'static, ) -> Self
pub fn build(self) -> ClapEditor<C>
Auto Trait Implementations§
impl<C> Freeze for ClapEditorBuilder<C>
impl<C> !RefUnwindSafe for ClapEditorBuilder<C>
impl<C> !Send for ClapEditorBuilder<C>
impl<C> !Sync for ClapEditorBuilder<C>
impl<C> Unpin for ClapEditorBuilder<C>where
C: Unpin,
impl<C> !UnwindSafe for ClapEditorBuilder<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
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