Skip to main content

href

Function href 

Source
pub fn href(code: &str) -> String
Expand description

The link for any diagnostic code (#3876): {BOOK_BASE_URL}/d/<code> for a registry code, which the site serves a page for whether or not the code has an explanation; otherwise (a host-synthetic code) {BOOK_BASE_URL}/d/, the index. What the LSP’s codeDescription, the editor’s Explain panel, bynk explain, the MCP tools and the playground all link.