pub struct ScopeHistory { /* private fields */ }Expand description
Scope history with persistence
Implementations§
Trait Implementations§
Source§impl Default for ScopeHistory
impl Default for ScopeHistory
Source§impl History<String> for ScopeHistory
impl History<String> for ScopeHistory
Source§fn read(&self, pos: usize) -> Option<String>
fn read(&self, pos: usize) -> Option<String>
This is called with the current position that should
be read from history. The
pos represents the number
of times the Up/Down arrow key has been pressed.
This would normally be used as an index to some sort
of vector. If the pos does not have an entry, None
should be returned.Auto Trait Implementations§
impl Freeze for ScopeHistory
impl RefUnwindSafe for ScopeHistory
impl Send for ScopeHistory
impl Sync for ScopeHistory
impl Unpin for ScopeHistory
impl UnwindSafe for ScopeHistory
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