pub fn href(code: &str) -> StringExpand description
The hosted-Book link for any diagnostic code: the curated
Explain::href when one exists (what the LSP’s codeDescription uses),
otherwise the diagnostic index, deep-linked to the code’s category section
when the code is a registry code (a non-registry code, e.g. a host-synthetic
one, links the index top).