Struct HistoryHinter
pub struct HistoryHinter {}
Add suggestion based on previous history entries matching current user input.
Implementations
impl HistoryHinter
fn new() -> SelfCreate a new
HistoryHinter
Trait Implementations
impl Default for HistoryHinter
fn default() -> HistoryHinter
impl Hinter for HistoryHinter
type Hint = String;fn hint(&self, line: &str, pos: usize, ctx: &Context<'_>) -> Option<String>
Auto Trait Implementations
impl Freeze for HistoryHinter
impl RefUnwindSafe for HistoryHinter
impl Send for HistoryHinter
impl Sync for HistoryHinter
impl Unpin for HistoryHinter
impl UnsafeUnpin for HistoryHinter
impl UnwindSafe for HistoryHinter
Blanket Implementations
impl<T> Any for HistoryHinter
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for HistoryHinter
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for HistoryHinter
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for HistoryHinter
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for HistoryHinter
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for HistoryHinter
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for HistoryHinter
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>