Trait script::xpath::eval::Evaluatable

source ·
pub trait Evaluatable: Debug {
    // Required methods
    fn evaluate(&self, context: &EvaluationCtx) -> Result<Value, Error>;
    fn is_primitive(&self) -> bool;
}

Required Methods§

source

fn evaluate(&self, context: &EvaluationCtx) -> Result<Value, Error>

source

fn is_primitive(&self) -> bool

Returns true if this expression evaluates to a primitive value, without needing to touch the DOM

Implementations on Foreign Types§

source§

impl<T> Evaluatable for Box<T>
where T: Evaluatable + ?Sized,

Implementors§