pub struct TypeBasedCompletion { /* private fields */ }Expand description
Type inference types: Perl types, constraints, and inference engine. Type-based code completion suggestions
Implementations§
Source§impl TypeBasedCompletion
impl TypeBasedCompletion
Sourcepub fn new(engine: Arc<TypeInferenceEngine>) -> TypeBasedCompletion
pub fn new(engine: Arc<TypeInferenceEngine>) -> TypeBasedCompletion
Creates a new completion provider with a shared type inference engine
Sourcepub fn get_completions(
&self,
var_name: &str,
_context: &str,
) -> Vec<CompletionItem>
pub fn get_completions( &self, var_name: &str, _context: &str, ) -> Vec<CompletionItem>
Returns completions based on the inferred type of a variable
Auto Trait Implementations§
impl Freeze for TypeBasedCompletion
impl RefUnwindSafe for TypeBasedCompletion
impl Send for TypeBasedCompletion
impl Sync for TypeBasedCompletion
impl Unpin for TypeBasedCompletion
impl UnsafeUnpin for TypeBasedCompletion
impl UnwindSafe for TypeBasedCompletion
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