Struct Context
pub struct Context<'h> { /* private fields */ }
Completion/suggestion context
Implementations
impl<'h> Context<'h>
fn new(history: &'h dyn History) -> SelfConstructor. Visible for testing.
fn history(&self) -> &dyn HistoryReturn an immutable reference to the history object.
fn history_index(&self) -> usizeThe history index we are currently editing