Struct termwiz::lineedit::BasicHistory [−][src]
A simple history implementation that holds entries in memory.
Trait Implementations
impl Default for BasicHistory
[src]
fn default() -> BasicHistory
[src]
impl History for BasicHistory
[src]
fn get(&self, idx: HistoryIndex) -> Option<Cow<'_, str>>
[src]
fn last(&self) -> Option<HistoryIndex>
[src]
fn add(&mut self, line: &str)
[src]
fn search(
&self,
idx: HistoryIndex,
style: SearchStyle,
direction: SearchDirection,
pattern: &str
) -> Option<SearchResult<'_>>
[src]
&self,
idx: HistoryIndex,
style: SearchStyle,
direction: SearchDirection,
pattern: &str
) -> Option<SearchResult<'_>>
Auto Trait Implementations
impl RefUnwindSafe for BasicHistory
impl Send for BasicHistory
impl Sync for BasicHistory
impl Unpin for BasicHistory
impl UnwindSafe for BasicHistory
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,