Struct HistoryHinter

pub struct HistoryHinter {}

Add suggestion based on previous history entries matching current user input.

Implementations

impl HistoryHinter

fn new() -> Self

Create 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) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for HistoryHinter where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses 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>