#[non_exhaustive]pub enum CandidateKind {
Value,
Command,
Flag,
File,
Directory,
}Expand description
The semantic role of one completion candidate.
PowerShell presents these with its native result types. Other shells currently preserve the value and description while ignoring the kind.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for CandidateKind
impl Clone for CandidateKind
Source§fn clone(&self) -> CandidateKind
fn clone(&self) -> CandidateKind
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 CandidateKind
Source§impl Debug for CandidateKind
impl Debug for CandidateKind
Source§impl Default for CandidateKind
impl Default for CandidateKind
Source§fn default() -> CandidateKind
fn default() -> CandidateKind
Returns the “default value” for a type. Read more
impl Eq for CandidateKind
Source§impl Ord for CandidateKind
impl Ord for CandidateKind
Source§fn cmp(&self, other: &CandidateKind) -> Ordering
fn cmp(&self, other: &CandidateKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CandidateKind
impl PartialEq for CandidateKind
Source§impl PartialOrd for CandidateKind
impl PartialOrd for CandidateKind
impl StructuralPartialEq for CandidateKind
Auto Trait Implementations§
impl Freeze for CandidateKind
impl RefUnwindSafe for CandidateKind
impl Send for CandidateKind
impl Sync for CandidateKind
impl Unpin for CandidateKind
impl UnsafeUnpin for CandidateKind
impl UnwindSafe for CandidateKind
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