Struct Context
struct Context<'h> { ... }
Completion/suggestion context
Implementations
impl<'h> Context<'h>
fn new(history: &'h dyn History) -> SelfConstructor. Visible for testing.
fn history(self: &Self) -> &dyn HistoryReturn an immutable reference to the history object.
fn history_index(self: &Self) -> usizeThe history index we are currently editing
impl<'h> Freeze for Context<'h>
impl<'h> RefUnwindSafe for Context<'h>
impl<'h> Send for Context<'h>
impl<'h> Sync for Context<'h>
impl<'h> Unpin for Context<'h>
impl<'h> UnwindSafe for Context<'h>
impl<T> Any for Context<'h>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Context<'h>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Context<'h>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for Context<'h>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for Context<'h>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Context<'h>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Context<'h>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>