Struct shrust::History
[−]
[src]
pub struct History {
// some fields omitted
}Wrap the command history from a shell. It has a maximum capacity, and when max capacity is reached, less recent command is removed from history
Methods
impl History
fn print<T: Write>(&self, out: &mut T)
Print the history to stdout
fn get(&self, i: usize) -> Option<String>
Get a command from history by its index