pub struct Config { /* private fields */ }
Implementations§
Source§impl Config
impl Config
pub fn builder() -> Builder
Sourcepub fn max_history_size(&self) -> usize
pub fn max_history_size(&self) -> usize
Tell the maximum length (i.e. number of entries) for the history.
Sourcepub fn history_duplicates(&self) -> HistoryDuplicates
pub fn history_duplicates(&self) -> HistoryDuplicates
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) -> bool
pub fn history_ignore_space(&self) -> bool
Tell if lines which begin with a space character are saved or not in the history list. By default, they are saved.
pub fn completion_type(&self) -> CompletionType
pub fn completion_prompt_limit(&self) -> usize
pub fn keyseq_timeout(&self) -> i32
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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