pub struct Builder { /* private fields */ }
Implementations§
Source§impl Builder
impl Builder
pub fn new() -> Builder
Sourcepub fn max_history_size(self, max_size: usize) -> Builder
pub fn max_history_size(self, max_size: usize) -> Builder
Set the maximum length for the history.
Sourcepub fn history_ignore_dups(self, yes: bool) -> Builder
pub fn history_ignore_dups(self, yes: bool) -> Builder
Tell if lines which match the previous history entry are saved or not in the history list. By default, they are ignored.
Sourcepub fn history_ignore_space(self, yes: bool) -> Builder
pub fn history_ignore_space(self, yes: bool) -> Builder
Tell if lines which begin with a space character are saved or not in the history list. By default, they are saved.
Sourcepub fn completion_type(self, completion_type: CompletionType) -> Builder
pub fn completion_type(self, completion_type: CompletionType) -> Builder
Set completion_type
.
pub fn completion_prompt_limit(self, completion_prompt_limit: usize) -> Builder
Sourcepub fn keyseq_timeout(self, keyseq_timeout_ms: i32) -> Builder
pub fn keyseq_timeout(self, keyseq_timeout_ms: i32) -> Builder
Set keyseq_timeout
in milliseconds.
pub fn build(self) -> Config
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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