pub struct InlineCompletionItem {
pub insert_text: InsertText,
pub filter_text: Option<String>,
pub range: Option<Range>,
pub command: Option<Command>,
}Expand description
An inline completion item represents a text snippet that is proposed inline to complete text that is being typed.
@since 3.18.0 @proposed
Fields§
§insert_text: InsertTextThe text to replace the range with. Must be set.
filter_text: Option<String>A text that is used to decide if this inline completion should be shown. When falsy the [InlineCompletionItem::insertText] is used.
range: Option<Range>The range to replace. Must begin and end on the same line.
command: Option<Command>An optional Command that is executed after inserting this completion.
Implementations§
Trait Implementations§
Source§impl Clone for InlineCompletionItem
impl Clone for InlineCompletionItem
Source§fn clone(&self) -> InlineCompletionItem
fn clone(&self) -> InlineCompletionItem
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 InlineCompletionItem
impl Debug for InlineCompletionItem
Source§impl<'de> Deserialize<'de> for InlineCompletionItem
impl<'de> Deserialize<'de> for InlineCompletionItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InlineCompletionItem
impl PartialEq for InlineCompletionItem
Source§fn eq(&self, other: &InlineCompletionItem) -> bool
fn eq(&self, other: &InlineCompletionItem) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InlineCompletionItem
impl Serialize for InlineCompletionItem
impl Eq for InlineCompletionItem
impl StructuralPartialEq for InlineCompletionItem
Auto Trait Implementations§
impl Freeze for InlineCompletionItem
impl RefUnwindSafe for InlineCompletionItem
impl Send for InlineCompletionItem
impl Sync for InlineCompletionItem
impl Unpin for InlineCompletionItem
impl UnsafeUnpin for InlineCompletionItem
impl UnwindSafe for InlineCompletionItem
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