Struct lsp2::CompletionList
pub struct CompletionList {
pub is_incomplete: bool,
pub item_defaults: Option<CompletionListItemDefaults>,
pub items: Vec<CompletionItem, Global>,
}
Expand description
Represents a collection of completion items to be presented in the editor.
Fields§
§is_incomplete: bool
This list it not complete. Further typing should result in recomputing this list.
item_defaults: Option<CompletionListItemDefaults>
In many cases the items of an actual completion result share the same
value for properties like commitCharacters
or the range of a text
edit. A completion list can therefore define item defaults which will
be used if a completion item itself doesn’t specify the value.
If a completion list specifies a default value and a completion item also specifies a corresponding value the one from the item is used.
Servers are only allowed to return default values if the client
signals support for this via the completionList.itemDefaults
capability.
@since 3.17.0
items: Vec<CompletionItem, Global>
The completion items.
Trait Implementations§
§impl Clone for CompletionList
impl Clone for CompletionList
§fn clone(&self) -> CompletionList
fn clone(&self) -> CompletionList
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 more§impl Debug for CompletionList
impl Debug for CompletionList
§impl Default for CompletionList
impl Default for CompletionList
§fn default() -> CompletionList
fn default() -> CompletionList
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for CompletionList
impl<'de> Deserialize<'de> for CompletionList
§fn deserialize<__D>(
__deserializer: __D
) -> Result<CompletionList, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<CompletionList, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<CompletionList> for CompletionResponse
impl From<CompletionList> for CompletionResponse
§fn from(list: CompletionList) -> CompletionResponse
fn from(list: CompletionList) -> CompletionResponse
Converts to this type from the input type.
§impl PartialEq<CompletionList> for CompletionList
impl PartialEq<CompletionList> for CompletionList
§fn eq(&self, other: &CompletionList) -> bool
fn eq(&self, other: &CompletionList) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for CompletionList
impl Serialize for CompletionList
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CompletionList
Auto Trait Implementations§
impl RefUnwindSafe for CompletionList
impl Send for CompletionList
impl Sync for CompletionList
impl Unpin for CompletionList
impl UnwindSafe for CompletionList
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