pub struct CompletionItemRow {
pub label: String,
pub kind_glyph: &'static str,
pub detail: Option<String>,
pub insert_text: String,
pub replace_range: (u32, u32),
pub line: u32,
}Expand description
One row of an LSP completion picker. Carries the item
label, kind glyph, optional detail blurb, and the insert
text. replace_range is the byte range in the active line
to splice the insert text over.
Fields§
§label: String§kind_glyph: &'static str§detail: Option<String>§insert_text: StringText to insert (raw – no snippet expansion yet).
replace_range: (u32, u32)Replace range as (start_byte, end_byte) on the active
line.
line: u32Line the replace range is on (LSP 0-based). Always the cursor’s line; carried explicitly to keep the accept path independent of cursor mutations.
Trait Implementations§
Source§impl Clone for CompletionItemRow
impl Clone for CompletionItemRow
Source§fn clone(&self) -> CompletionItemRow
fn clone(&self) -> CompletionItemRow
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 moreAuto Trait Implementations§
impl Freeze for CompletionItemRow
impl RefUnwindSafe for CompletionItemRow
impl Send for CompletionItemRow
impl Sync for CompletionItemRow
impl Unpin for CompletionItemRow
impl UnsafeUnpin for CompletionItemRow
impl UnwindSafe for CompletionItemRow
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more