pub trait HasCompletionContext {
// Required method
fn argument(&self) -> &CompleteArgument;
// Provided method
fn context(&self) -> Option<&CompletionContext> { ... }
}
Expand description
Trait for completion context (argument, context)
Required Methods§
Sourcefn argument(&self) -> &CompleteArgument
fn argument(&self) -> &CompleteArgument
The argument being completed
Provided Methods§
Sourcefn context(&self) -> Option<&CompletionContext>
fn context(&self) -> Option<&CompletionContext>
Optional completion context