pub struct Completions {
pub items: Vec<CompletionItem>,
pub is_incomplete: bool,
}Expand description
Result of Ecosystem::generate_completions.
Carries the completion items produced for this specific call, plus whether they are a possibly-truncated view of a larger candidate set that the LSP client should re-query for as the user keeps typing.
Supersedes the ecosystem-wide Ecosystem::completions_are_incomplete() flag (#419):
is_incomplete is computed per call from the actual completion context and result
set, so only the specific context that is genuinely truncated (e.g. PyPI’s unranked,
index-backed package-name search) is flagged — a version completion, a comment
position, or any other exhaustive context in the same manifest correctly reports
is_incomplete: false instead of inheriting the worst case across the whole
ecosystem (#427).
Fields§
§items: Vec<CompletionItem>The completion items for this call.
is_incomplete: boolWhether items is a possibly-truncated view of a larger candidate set.
Trait Implementations§
Source§impl Clone for Completions
impl Clone for Completions
Source§fn clone(&self) -> Completions
fn clone(&self) -> Completions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Completions
impl Debug for Completions
Source§impl Default for Completions
impl Default for Completions
Source§fn default() -> Completions
fn default() -> Completions
impl Eq for Completions
Source§impl From<Vec<CompletionItem>> for Completions
impl From<Vec<CompletionItem>> for Completions
Source§impl PartialEq for Completions
impl PartialEq for Completions
Source§fn eq(&self, other: &Completions) -> bool
fn eq(&self, other: &Completions) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Completions
Auto Trait Implementations§
impl Freeze for Completions
impl RefUnwindSafe for Completions
impl Send for Completions
impl Sync for Completions
impl Unpin for Completions
impl UnsafeUnpin for Completions
impl UnwindSafe for Completions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.