Enum modalkit::prelude::CompletionSelection
source · pub enum CompletionSelection {
List(MoveDir1D),
None,
Prefix,
Single,
}
Expand description
What type of phrase we are completing.
Variants§
List(MoveDir1D)
Navigate through the list of completion candidates.
None
Generate completion candidates, but don’t select any from the list.
Prefix
Complete only the longest common prefix from the completion candidates.
Single
If there is only a single completion candidate, select it.
Trait Implementations§
source§impl Clone for CompletionSelection
impl Clone for CompletionSelection
source§fn clone(&self) -> CompletionSelection
fn clone(&self) -> CompletionSelection
Returns a copy of the value. Read more
1.0.0 · 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 CompletionSelection
impl Debug for CompletionSelection
source§impl PartialEq for CompletionSelection
impl PartialEq for CompletionSelection
source§fn eq(&self, other: &CompletionSelection) -> bool
fn eq(&self, other: &CompletionSelection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CompletionSelection
impl StructuralPartialEq for CompletionSelection
Auto Trait Implementations§
impl Freeze for CompletionSelection
impl RefUnwindSafe for CompletionSelection
impl Send for CompletionSelection
impl Sync for CompletionSelection
impl Unpin for CompletionSelection
impl UnwindSafe for CompletionSelection
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