pub trait ReferenceResolver {
// Required method
fn resolve(
&self,
context: &ResolutionContext<'_>,
) -> Option<ResolvedReference>;
}Expand description
Resolves cross-reference targets to their destinations.
Implementations map a ResolutionContext to a ResolvedReference, or
return None when the target cannot be resolved (the caller then renders an
unresolved-reference fallback and may emit a warning).
Required Methods§
Sourcefn resolve(&self, context: &ResolutionContext<'_>) -> Option<ResolvedReference>
fn resolve(&self, context: &ResolutionContext<'_>) -> Option<ResolvedReference>
Resolve a single cross-reference.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".