pub struct ShellHistory { /* private fields */ }
Implementations§
Source§impl ShellHistory
impl ShellHistory
Sourcepub fn new() -> ShellHistory
pub fn new() -> ShellHistory
§new
Instantiate a new ShellHistory
Sourcepub fn at(&self, index: usize) -> Option<String>
pub fn at(&self, index: usize) -> Option<String>
§at
Get the command at a certain index of the history None is returned in case index is out of range
Auto Trait Implementations§
impl Freeze for ShellHistory
impl RefUnwindSafe for ShellHistory
impl Send for ShellHistory
impl Sync for ShellHistory
impl Unpin for ShellHistory
impl UnwindSafe for ShellHistory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more