Extract the Markdown text from a Hover response.
(hover: &Hover)
| 27 | |
| 28 | /// Extract the Markdown text from a Hover response. |
| 29 | fn hover_text(hover: &Hover) -> &str { |
| 30 | match &hover.contents { |
| 31 | HoverContents::Markup(markup) => &markup.value, |
| 32 | _ => panic!("Expected MarkupContent"), |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | // ─── Multi-namespace hover ────────────────────────────────────────────────── |
| 37 |
no outgoing calls