Struct ra_ap_ide_completion::CompletionConfig
source · pub struct CompletionConfig {Show 13 fields
pub enable_postfix_completions: bool,
pub enable_imports_on_the_fly: bool,
pub enable_self_on_the_fly: bool,
pub enable_private_editable: bool,
pub enable_term_search: bool,
pub full_function_signatures: bool,
pub callable: Option<CallableSnippets>,
pub snippet_cap: Option<SnippetCap>,
pub insert_use: InsertUseConfig,
pub prefer_no_std: bool,
pub prefer_prelude: bool,
pub snippets: Vec<Snippet>,
pub limit: Option<usize>,
}
Fields§
§enable_postfix_completions: bool
§enable_imports_on_the_fly: bool
§enable_self_on_the_fly: bool
§enable_private_editable: bool
§enable_term_search: bool
§full_function_signatures: bool
§callable: Option<CallableSnippets>
§snippet_cap: Option<SnippetCap>
§insert_use: InsertUseConfig
§prefer_no_std: bool
§prefer_prelude: bool
§snippets: Vec<Snippet>
§limit: Option<usize>
Implementations§
source§impl CompletionConfig
impl CompletionConfig
pub fn postfix_snippets(&self) -> impl Iterator<Item = (&str, &Snippet)>
pub fn prefix_snippets(&self) -> impl Iterator<Item = (&str, &Snippet)>
Trait Implementations§
source§impl Clone for CompletionConfig
impl Clone for CompletionConfig
source§fn clone(&self) -> CompletionConfig
fn clone(&self) -> CompletionConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CompletionConfig
impl Debug for CompletionConfig
source§impl PartialEq for CompletionConfig
impl PartialEq for CompletionConfig
source§fn eq(&self, other: &CompletionConfig) -> bool
fn eq(&self, other: &CompletionConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CompletionConfig
impl StructuralPartialEq for CompletionConfig
Auto Trait Implementations§
impl Freeze for CompletionConfig
impl RefUnwindSafe for CompletionConfig
impl Send for CompletionConfig
impl Sync for CompletionConfig
impl Unpin for CompletionConfig
impl UnwindSafe for CompletionConfig
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
source§impl<T> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.