Function rurtle::readline::add_history [] [src]

pub fn add_history(line: &str)

Add the given line to the readline history so the user can navigate back to it.

Note that you should not add empty lines to the history.

Panics

This function panics if the given line contains nul-bytes ('\0')