pub enum CompletionTrigger {
Typed(char),
TriggerChar(char),
Manual,
}Expand description
What caused a completion request — the classifier’s dispatch ladder keys off this.
Variants§
Typed(char)
A completion-word char extended the current word.
TriggerChar(char)
One of the trigger set ( , = : . ␣ that opens completion at a new spot.
Manual
Ctrl+Space, or the retrigger flag on a just-accepted item.
Trait Implementations§
Source§impl Clone for CompletionTrigger
impl Clone for CompletionTrigger
Source§fn clone(&self) -> CompletionTrigger
fn clone(&self) -> CompletionTrigger
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 CompletionTrigger
Source§impl Debug for CompletionTrigger
impl Debug for CompletionTrigger
impl Eq for CompletionTrigger
Source§impl PartialEq for CompletionTrigger
impl PartialEq for CompletionTrigger
impl StructuralPartialEq for CompletionTrigger
Auto Trait Implementations§
impl Freeze for CompletionTrigger
impl RefUnwindSafe for CompletionTrigger
impl Send for CompletionTrigger
impl Sync for CompletionTrigger
impl Unpin for CompletionTrigger
impl UnsafeUnpin for CompletionTrigger
impl UnwindSafe for CompletionTrigger
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.