[][src]Function winconsole::console::set_history_info

pub fn set_history_info(history: HistoryInfo) -> WinResult<()>

Sets information about console input history settings.

Arguments

Examples

let mut history_settings = console::get_history_info().unwrap();
history_settings.duplicates_allowed = false;
console::set_history_info(history_settings).unwrap();

Errors