pub trait Resolver {
// Required methods
fn reference(
&mut self,
kind: RefKind,
id: &str,
path: &str,
) -> Result<String, String>;
fn text(&mut self, text: &str, path: &str) -> Option<String>;
// Provided method
fn text_of(&mut self, _text: &str) -> Option<String> { ... }
}Expand description
What a tool does with a book’s references and texts.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".