pub struct SimpleCompletion {
pub kind: CompletionItemKind,
pub label: String,
pub _label_details: Option<CompletionItemLabelDetails>,
pub _documentation: Option<String>,
pub _sort_text: Option<String>,
pub _filter_text: Option<String>,
pub edits: Vec<TextEdit>,
pub _commit_char: Option<String>,
}
Fields§
§kind: CompletionItemKind
§label: String
§_label_details: Option<CompletionItemLabelDetails>
§_documentation: Option<String>
§_sort_text: Option<String>
§_filter_text: Option<String>
§edits: Vec<TextEdit>
§_commit_char: Option<String>
Implementations§
Source§impl SimpleCompletion
impl SimpleCompletion
pub fn new(kind: CompletionItemKind, label: String, edit: TextEdit) -> Self
pub fn label_detail(self, detail: impl Into<String>) -> Self
pub fn label_description(self, description: impl Into<String>) -> Self
pub fn text_edit(self, edit: TextEdit) -> Self
pub fn documentation(self, documentation: impl Into<String>) -> Self
pub fn m_documentation<S: Into<String>>(self, documentation: Option<S>) -> Self
pub fn sort_text(self, sort_text: impl Into<String>) -> Self
pub fn filter_text(self, filter_text: impl Into<String>) -> Self
pub fn commit_char(self, commit_char: impl Into<String>) -> Self
Trait Implementations§
Source§impl Debug for SimpleCompletion
impl Debug for SimpleCompletion
Source§impl Into<CompletionItem> for SimpleCompletion
impl Into<CompletionItem> for SimpleCompletion
Source§fn into(self) -> CompletionItem
fn into(self) -> CompletionItem
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for SimpleCompletion
impl RefUnwindSafe for SimpleCompletion
impl Send for SimpleCompletion
impl Sync for SimpleCompletion
impl Unpin for SimpleCompletion
impl UnwindSafe for SimpleCompletion
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more