script::xpath::eval

Trait Evaluatable

Source
pub(crate) 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§