pub struct Config { /* private fields */ }
Expand description
User preferences
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
pub fn edit_mode(&self) -> EditMode
Sourcepub fn auto_add_history(&self) -> bool
pub fn auto_add_history(&self) -> bool
Tell if lines are automatically added to the history.
By default, they are not.
Sourcepub fn color_mode(&self) -> ColorMode
pub fn color_mode(&self) -> ColorMode
Tell if colors should be enabled.
By default, they are except if stdout is not a tty.
pub fn output_stream(&self) -> OutputStreamType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)