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

Trait Implementations

Derived Implementations

impl Clone for History

fn clone(&self) -> History

1.0.0fn clone_from(&mut self, source: &Self)