Resolver

Trait Resolver 

Source
pub trait Resolver: Send + Sync {
    // Required methods
    fn resolve(
        &self,
        args: &[String],
        kwargs: &HashMap<String, String>,
        ctx: &ResolverContext,
    ) -> Result<ResolvedValue>;
    fn name(&self) -> &str;
}
Expand description

Trait for resolver implementations

Required Methods§

Source

fn resolve( &self, args: &[String], kwargs: &HashMap<String, String>, ctx: &ResolverContext, ) -> Result<ResolvedValue>

Resolve an interpolation expression

§Arguments
  • args - Positional arguments from the interpolation
  • kwargs - Keyword arguments from the interpolation
  • ctx - Resolution context
Source

fn name(&self) -> &str

Get the name of this resolver

Implementors§