Trait IdResolver

Source
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§

Source

fn resolve_id(&self, query: &Query) -> Option<ResolvedId>

Resolve the id, returning the substituted string if there is a match.

Implementations on Foreign Types§

Source§

impl IdResolver for &[LocationEither]

Source§

fn resolve_id(&self, query: &Query) -> Option<ResolvedId>

Implementors§