Skip to main content

encode_meta

Function encode_meta 

Source
pub fn encode_meta(meta: &LspCompletionMeta) -> Vec<u8> ⓘ
Expand description

Encode meta to a JSON byte blob suitable for embedding in a RawCandidate’s CandidateData::Extension::payload. Errors are caller-handled by panicking in the source’s produce path – a serialize failure on lsp-types output indicates a malformed item, which the supervisor should have rejected before we got here.