Struct liner::History [] [src]

pub struct History {
    pub buffers: VecDeque<Buffer>,
    // some fields omitted
}

Structure encapsulating command history

Fields

Vector of buffers to store history in

Methods

impl History
[src]

Create new History structure.

Number of items in history.

Add a command to the history buffer and remove the oldest commands when the max history size has been met. If writing to the disk is enabled, this function will be used for logging history to the designated history file.

Go through the history and try to find a buffer which starts the same as the new buffer given to this function as argument.

Get the history file name.

Set history file name. At the same time enable history.

Set maximal number of buffers stored in memory

Set maximal number of entries in history file

Load history from given file name

Trait Implementations

impl Index<usize> for History
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl IndexMut<usize> for History
[src]

The method for the mutable indexing (container[index]) operation