pub struct CompletionItem {
pub receiver: String,
pub name: String,
pub params: Vec<String>,
pub result: String,
pub doc: String,
}Expand description
One completion item: the receiver shape, method name, parameter shapes, result shape, and doc — everything the LSP needs to offer a completion.
Fields§
§receiver: StringThe receiver type as a display string, e.g. Vec[T] or Map[K, V].
name: StringThe method name, e.g. push.
params: Vec<String>The parameter type-pattern display strings, in order.
result: StringThe result type-pattern display string.
doc: StringThe one-line doc.
Trait Implementations§
Source§impl Clone for CompletionItem
impl Clone for CompletionItem
Source§fn clone(&self) -> CompletionItem
fn clone(&self) -> CompletionItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CompletionItem
impl Debug for CompletionItem
impl Eq for CompletionItem
Source§impl PartialEq for CompletionItem
impl PartialEq for CompletionItem
impl StructuralPartialEq for CompletionItem
Auto Trait Implementations§
impl Freeze for CompletionItem
impl RefUnwindSafe for CompletionItem
impl Send for CompletionItem
impl Sync for CompletionItem
impl Unpin for CompletionItem
impl UnsafeUnpin for CompletionItem
impl UnwindSafe for CompletionItem
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