pub struct InlineCompletionTriggerKind(/* private fields */);Expand description
Describes how an [InlineCompletionItemProvider] was triggered.
@since 3.18.0
Implementations§
Source§impl InlineCompletionTriggerKind
impl InlineCompletionTriggerKind
Sourcepub const INVOKED: InlineCompletionTriggerKind
pub const INVOKED: InlineCompletionTriggerKind
Completion was triggered explicitly by a user gesture. Return multiple completion items to enable cycling through them.
Sourcepub const AUTOMATIC: InlineCompletionTriggerKind
pub const AUTOMATIC: InlineCompletionTriggerKind
Completion was triggered automatically while editing. It is sufficient to return a single completion item in this case.
Trait Implementations§
Source§impl Clone for InlineCompletionTriggerKind
impl Clone for InlineCompletionTriggerKind
Source§fn clone(&self) -> InlineCompletionTriggerKind
fn clone(&self) -> InlineCompletionTriggerKind
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 moreimpl Copy for InlineCompletionTriggerKind
Source§impl Debug for InlineCompletionTriggerKind
impl Debug for InlineCompletionTriggerKind
Source§impl<'de> Deserialize<'de> for InlineCompletionTriggerKind
impl<'de> Deserialize<'de> for InlineCompletionTriggerKind
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
impl Eq for InlineCompletionTriggerKind
Source§impl PartialEq for InlineCompletionTriggerKind
impl PartialEq for InlineCompletionTriggerKind
Source§fn eq(&self, other: &InlineCompletionTriggerKind) -> bool
fn eq(&self, other: &InlineCompletionTriggerKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InlineCompletionTriggerKind
Auto Trait Implementations§
impl Freeze for InlineCompletionTriggerKind
impl RefUnwindSafe for InlineCompletionTriggerKind
impl Send for InlineCompletionTriggerKind
impl Sync for InlineCompletionTriggerKind
impl Unpin for InlineCompletionTriggerKind
impl UnsafeUnpin for InlineCompletionTriggerKind
impl UnwindSafe for InlineCompletionTriggerKind
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