pub trait IdResolver {
// Required method
fn resolve_id(&self, query: &Query) -> Option<ResolvedId>;
}Expand description
A trait which matches the query id, replacing the match in the substitution text.
Required Methods§
Sourcefn resolve_id(&self, query: &Query) -> Option<ResolvedId>
fn resolve_id(&self, query: &Query) -> Option<ResolvedId>
Resolve the id, returning the substituted string if there is a match.