aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-12-21 12:34:11 +0000
committerAleksey Kladov <[email protected]>2018-12-21 12:34:11 +0000
commit052e20162a026356c716116ac10ea795ca5dc28d (patch)
tree1c7e6a69c9e9ad719fb90070d1b70664bc11fb29 /crates
parent0ce82516c1023d9aed84556949ee2ac6294a3079 (diff)
docs
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_analysis/src/completion/completion_item.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ra_analysis/src/completion/completion_item.rs b/crates/ra_analysis/src/completion/completion_item.rs
index 322a7c6be..445d6bf41 100644
--- a/crates/ra_analysis/src/completion/completion_item.rs
+++ b/crates/ra_analysis/src/completion/completion_item.rs
@@ -1,3 +1,6 @@
1/// `CompletionItem` describes a single completion variant in the editor pop-up.
2/// It is basically a POD with various properties. To construct a
3/// `CompletionItem`, use `new` method and the `Builder` struct.
1#[derive(Debug)] 4#[derive(Debug)]
2pub struct CompletionItem { 5pub struct CompletionItem {
3 label: String, 6 label: String,
@@ -41,6 +44,7 @@ impl CompletionItem {
41 } 44 }
42} 45}
43 46
47/// A helper to make `CompletionItem`s.
44#[must_use] 48#[must_use]
45pub(crate) struct Builder { 49pub(crate) struct Builder {
46 label: String, 50 label: String,
@@ -76,6 +80,7 @@ impl Into<CompletionItem> for Builder {
76 } 80 }
77} 81}
78 82
83/// Represents an in-progress set of completions being built.
79#[derive(Debug)] 84#[derive(Debug)]
80pub(crate) struct Completions { 85pub(crate) struct Completions {
81 buf: Vec<CompletionItem>, 86 buf: Vec<CompletionItem>,