pub trait LinkResolver {
// Required methods
fn link_registry(&self) -> Option<&LinkRegistry>;
fn process_docs(&self, item: &Item, current_file: &str) -> Option<String>;
fn create_link(&self, id: Id, current_file: &str) -> Option<String>;
}Expand description
Link creation and documentation processing.
Handles intra-doc link resolution and markdown link generation.
Required Methods§
Sourcefn link_registry(&self) -> Option<&LinkRegistry>
fn link_registry(&self) -> Option<&LinkRegistry>
Get the link registry for single-crate mode.
Returns None in multi-crate mode where UnifiedLinkRegistry is used instead.
Sourcefn process_docs(&self, item: &Item, current_file: &str) -> Option<String>
fn process_docs(&self, item: &Item, current_file: &str) -> Option<String>
Process documentation string with intra-doc link resolution.
Transforms [`Type`] style links in doc comments into proper
markdown links. Also strips duplicate titles and reference definitions.
§Arguments
item- The item whose docs to process (provides docs and links map)current_file- Path of the current file (for relative link calculation)