pub struct SnippetCandidateMeta {
pub name: String,
pub prefix: String,
pub description: Option<String>,
pub body: SnippetBody,
}Expand description
Sidecar metadata for snippet candidates in the popup. The
host renders the snippet body on accept and starts an
ActiveSnippet; this struct carries the parsed body +
the display fields the popup row uses.
Phase 5.B.20: definition moved to
lattice_host::state::SnippetCandidateMeta alongside the
editor.insert_completion_snippet_meta field that owns it.
Re-exported here so existing callers keep compiling.
Sidecar metadata for snippet candidates in the active
insert-completion popup. Indexed by the candidate’s
CandidateData::Extension { payload } (u32 LE) – same
shape as the LSP source’s sidecar. The host renders the
snippet body on accept and starts an ActiveSnippet; this
struct carries the parsed body plus the display fields the
popup row uses.
Fields§
§name: String§prefix: String§description: Option<String>§body: SnippetBodyTrait Implementations§
Source§impl Clone for SnippetCandidateMeta
impl Clone for SnippetCandidateMeta
Source§fn clone(&self) -> SnippetCandidateMeta
fn clone(&self) -> SnippetCandidateMeta
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SnippetCandidateMeta
impl RefUnwindSafe for SnippetCandidateMeta
impl Send for SnippetCandidateMeta
impl Sync for SnippetCandidateMeta
impl Unpin for SnippetCandidateMeta
impl UnsafeUnpin for SnippetCandidateMeta
impl UnwindSafe for SnippetCandidateMeta
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§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> ⓘ
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> ⓘ
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