ExpressionExt

Trait ExpressionExt 

Source
pub trait ExpressionExt {
    // Required methods
    fn map_resolve(
        &self,
        ctx: &mut Context<'_>,
    ) -> Result<Option<Value>, ExpressionError>;
    fn map_resolve_with_default<F>(
        &self,
        ctx: &mut Context<'_>,
        default_fn: F,
    ) -> Resolved
       where F: FnOnce() -> Value;
}

Required Methods§

Source

fn map_resolve( &self, ctx: &mut Context<'_>, ) -> Result<Option<Value>, ExpressionError>

Source

fn map_resolve_with_default<F>( &self, ctx: &mut Context<'_>, default_fn: F, ) -> Resolved
where F: FnOnce() -> Value,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ExpressionExt for Option<Box<dyn Expression>>

Source§

fn map_resolve( &self, ctx: &mut Context<'_>, ) -> Result<Option<Value>, ExpressionError>

Source§

fn map_resolve_with_default<F>( &self, ctx: &mut Context<'_>, default_fn: F, ) -> Resolved
where F: FnOnce() -> Value,

Implementors§