pub enum CompletionKind {
Field,
Variant,
MapKey,
Option,
Delimiter,
}Expand description
The classification of a single CompletionItem (FR-011/FR-012).
Used both as a display hint for the surface layer and as the primary sort key for deterministic ordering: items are ordered by kind (in the order the variants are declared here) then alphabetically by label.
Variants§
Field
A struct field name already present on a sibling/like struct.
Variant
An enum-variant identifier attested elsewhere in the document.
MapKey
A map key attested elsewhere in the document.
Option
The Some / None option constructors (always structurally legal).
Delimiter
A context-legal delimiter / punctuation hint (e.g. (, [, {).
Trait Implementations§
Source§impl Clone for CompletionKind
impl Clone for CompletionKind
Source§fn clone(&self) -> CompletionKind
fn clone(&self) -> CompletionKind
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 CompletionKind
Source§impl Debug for CompletionKind
impl Debug for CompletionKind
impl Eq for CompletionKind
Source§impl Hash for CompletionKind
impl Hash for CompletionKind
Source§impl Ord for CompletionKind
impl Ord for CompletionKind
Source§fn cmp(&self, other: &CompletionKind) -> Ordering
fn cmp(&self, other: &CompletionKind) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CompletionKind
impl PartialEq for CompletionKind
Source§impl PartialOrd for CompletionKind
impl PartialOrd for CompletionKind
impl StructuralPartialEq for CompletionKind
Auto Trait Implementations§
impl Freeze for CompletionKind
impl RefUnwindSafe for CompletionKind
impl Send for CompletionKind
impl Sync for CompletionKind
impl Unpin for CompletionKind
impl UnsafeUnpin for CompletionKind
impl UnwindSafe for CompletionKind
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