pub struct InlineCompletionProvider;Expand description
A provider for inline completions.
Implementations§
Source§impl InlineCompletionProvider
impl InlineCompletionProvider
Sourcepub fn get_inline_completions(
&self,
text: &str,
line: u32,
character: u32,
) -> InlineCompletionList
pub fn get_inline_completions( &self, text: &str, line: u32, character: u32, ) -> InlineCompletionList
Get inline completions for the given context
Sourcepub fn prepare_context(
&self,
text: &str,
line: u32,
character: u32,
) -> Option<PreparedInlineCompletionContext>
pub fn prepare_context( &self, text: &str, line: u32, character: u32, ) -> Option<PreparedInlineCompletionContext>
Prepare surrounding code context for deterministic suggestions and future LLM-backed inline completion.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InlineCompletionProvider
impl RefUnwindSafe for InlineCompletionProvider
impl Send for InlineCompletionProvider
impl Sync for InlineCompletionProvider
impl Unpin for InlineCompletionProvider
impl UnsafeUnpin for InlineCompletionProvider
impl UnwindSafe for InlineCompletionProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more