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[src]
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
Trait Implementations
impl Clone for History[src]
fn clone(&self) -> History
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more