pub struct CompletionCandidate {
pub label: String,
pub insert_text: String,
pub kind: CompletionKind,
pub detail: Option<String>,
}Expand description
A neutral, editor-agnostic completion candidate.
Fields§
§label: StringThe label shown in the completion popup.
insert_text: StringThe text to insert. Distinguished from label (e.g. tags keep
the # in label but drop it in insert_text). When equal to
label (no special insert behavior) adapters may treat it as
“no explicit insert text”.
kind: CompletionKindThe kind of candidate.
detail: Option<String>Human-readable detail string, if any.
Trait Implementations§
Source§impl Clone for CompletionCandidate
impl Clone for CompletionCandidate
Source§fn clone(&self) -> CompletionCandidate
fn clone(&self) -> CompletionCandidate
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 moreSource§impl Debug for CompletionCandidate
impl Debug for CompletionCandidate
impl Eq for CompletionCandidate
Source§impl PartialEq for CompletionCandidate
impl PartialEq for CompletionCandidate
Source§fn eq(&self, other: &CompletionCandidate) -> bool
fn eq(&self, other: &CompletionCandidate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompletionCandidate
Auto Trait Implementations§
impl Freeze for CompletionCandidate
impl RefUnwindSafe for CompletionCandidate
impl Send for CompletionCandidate
impl Sync for CompletionCandidate
impl Unpin for CompletionCandidate
impl UnsafeUnpin for CompletionCandidate
impl UnwindSafe for CompletionCandidate
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