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§
fn evaluate(&self, context: &EvaluationCtx) -> Result<Value, Error>
sourcefn is_primitive(&self) -> bool
fn is_primitive(&self) -> bool
Returns true if this expression evaluates to a primitive value, without needing to touch the DOM