use std::path::Path;
use anyhow::Result;
#[derive(Debug, Clone)]
pub struct PublicItem {
pub path: String,
pub kind: String,
pub signature: Option<String>,
}
pub fn load(_rustdoc_json: &Path) -> Result<Vec<PublicItem>> {
Ok(Vec::new())
}
pub fn to_markdown(items: &[PublicItem]) -> String {
let mut s = String::from("| path | kind | signature |\n|---|---|---|\n");
for i in items {
s.push_str(&format!(
"| `{}` | {} | {} |\n",
i.path,
i.kind,
i.signature.as_deref().unwrap_or("")
));
}
s
}