pub fn doc_link_url(
index: &ProjectIndex,
doc_scope: &HashMap<String, Vec<String>>,
project_root: &Path,
snapshots: &HashMap<PathBuf, String>,
owner_unit: &str,
name: &str,
ctx: Option<&DocLinkContext<'_>>,
) -> Option<Url>Expand description
#2455, #2531: the target of one doc-link candidate — the project scope first
(crate::index_queries::resolve_doc_link_in, a file:// URL), then, only if
that finds nothing, the first-party Book entry (first_party_docs, an
https:// URL). ctx (the declaration the doc comment is attached to) lets
its own fields and parameters link. Shared by document_link and
linkify_doc_links.