mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
docs
This commit is contained in:
parent
0ce82516c1
commit
052e20162a
1 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
|||
/// `CompletionItem` describes a single completion variant in the editor pop-up.
|
||||
/// It is basically a POD with various properties. To construct a
|
||||
/// `CompletionItem`, use `new` method and the `Builder` struct.
|
||||
#[derive(Debug)]
|
||||
pub struct CompletionItem {
|
||||
label: String,
|
||||
|
@ -41,6 +44,7 @@ impl CompletionItem {
|
|||
}
|
||||
}
|
||||
|
||||
/// A helper to make `CompletionItem`s.
|
||||
#[must_use]
|
||||
pub(crate) struct Builder {
|
||||
label: String,
|
||||
|
@ -76,6 +80,7 @@ impl Into<CompletionItem> for Builder {
|
|||
}
|
||||
}
|
||||
|
||||
/// Represents an in-progress set of completions being built.
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct Completions {
|
||||
buf: Vec<CompletionItem>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue