GhostTextGenerator

Trait GhostTextGenerator 

Source
pub trait GhostTextGenerator: Send + Sync {
    // Required methods
    fn generate_ghost_text(
        &self,
        completion: &CompletionItem,
        position: Position,
    ) -> GhostText;
    fn generate_multiline_ghost_text(
        &self,
        completion: &CompletionItem,
        position: Position,
    ) -> GhostText;
}
Expand description

Trait for generating ghost text from completions

Required Methods§

Source

fn generate_ghost_text( &self, completion: &CompletionItem, position: Position, ) -> GhostText

Generate ghost text from a completion item

Source

fn generate_multiline_ghost_text( &self, completion: &CompletionItem, position: Position, ) -> GhostText

Generate ghost text for multi-line completions

Implementors§