pub trait LinkProvider: Send + Sync {
// Required methods
fn file_url(&self, path: &str) -> Option<String>;
fn line_url(&self, path: &str, line: usize) -> Option<String>;
}Expand description
Where file and line links point.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl LinkProvider for Hyperlinker
Local file:// or editor links through a Hyperlinker.