pub(crate) fn href_with_root_path(
    did: DefId,
    cx: &Context<'_>,
    root_path: Option<&str>
) -> Result<(String, ItemType, Vec<Symbol>), HrefError>