pub trait CompletionProviderImpl: ObjectImpl {
// Provided methods
fn activate(
&self,
context: &CompletionContext,
proposal: &CompletionProposal,
) { ... }
fn display(
&self,
context: &CompletionContext,
proposal: &CompletionProposal,
cell: &CompletionCell,
) { ... }
fn title(&self) -> Option<GString> { ... }
fn priority(&self, context: &CompletionContext) -> i32 { ... }
fn is_trigger(&self, iter: &TextIter, c: char) -> bool { ... }
fn key_activates(
&self,
context: &CompletionContext,
proposal: &CompletionProposal,
keyval: Key,
state: ModifierType,
) -> bool { ... }
fn refilter(&self, context: &CompletionContext, model: &ListModel) { ... }
fn list_alternates(
&self,
context: &CompletionContext,
proposal: &CompletionProposal,
) -> Vec<CompletionProposal> { ... }
fn populate(&self, context: &CompletionContext) -> Result<ListModel, Error> { ... }
fn populate_future(
&self,
context: &CompletionContext,
) -> Pin<Box<dyn Future<Output = Result<ListModel, Error>>>> { ... }
}
Provided Methods§
fn activate(&self, context: &CompletionContext, proposal: &CompletionProposal)
fn display( &self, context: &CompletionContext, proposal: &CompletionProposal, cell: &CompletionCell, )
fn title(&self) -> Option<GString>
fn priority(&self, context: &CompletionContext) -> i32
fn is_trigger(&self, iter: &TextIter, c: char) -> bool
fn key_activates( &self, context: &CompletionContext, proposal: &CompletionProposal, keyval: Key, state: ModifierType, ) -> bool
fn refilter(&self, context: &CompletionContext, model: &ListModel)
fn list_alternates( &self, context: &CompletionContext, proposal: &CompletionProposal, ) -> Vec<CompletionProposal>
fn populate(&self, context: &CompletionContext) -> Result<ListModel, Error>
fn populate_future( &self, context: &CompletionContext, ) -> Pin<Box<dyn Future<Output = Result<ListModel, Error>>>>
Object Safety§
This trait is not object safe.