pub struct CompletionEngine { /* private fields */ }
Expand description
Code completion engine
Implementations§
Source§impl CompletionEngine
impl CompletionEngine
pub fn new() -> Self
Sourcepub async fn complete(
&self,
context: &CompletionContext,
) -> Vec<CompletionSuggestion>
pub async fn complete( &self, context: &CompletionContext, ) -> Vec<CompletionSuggestion>
Generate completion suggestions for the given context
Sourcepub async fn record_feedback(&self, suggestion_id: &str, accepted: bool)
pub async fn record_feedback(&self, suggestion_id: &str, accepted: bool)
Record user feedback on a suggestion
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompletionEngine
impl !RefUnwindSafe for CompletionEngine
impl Send for CompletionEngine
impl Sync for CompletionEngine
impl Unpin for CompletionEngine
impl !UnwindSafe for CompletionEngine
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