pub trait Resolve {
// Provided methods
fn reference(&mut self, r: &Ref, _path: &Path) -> Result<String, String> { ... }
fn text(&mut self, t: &Text, _path: &Path) -> Result<String, String> { ... }
fn words(&mut self, _r: &Res) -> Option<String> { ... }
}Expand description
What a tool makes of the references and texts it reads: yog build
checks each reference against the content there is and turns texts
into translation keys; the IDE shows them.
Provided Methods§
Sourcefn reference(&mut self, r: &Ref, _path: &Path) -> Result<String, String>
fn reference(&mut self, r: &Ref, _path: &Path) -> Result<String, String>
A reference: the id to keep, or why it’s wrong.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".