Skip to main content

Resolve

Trait Resolve 

Source
pub trait Resolve {
    // Required method
    fn reference(&mut self, r: &Ref, path: &Path) -> Result<RefKey, Unresolved>;
}
Expand description

What a tool makes of the references it reads: a build checks each one against what there is (and may rewrite its id), an editor shows them.

Required Methods§

Source

fn reference(&mut self, r: &Ref, path: &Path) -> Result<RefKey, Unresolved>

A reference at path: the id to keep, or why it’s wrong.

§Errors

Unresolved when the reference names nothing there is, or names it in a way the tool refuses.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§