pub trait Operator: Send + Sync {
// Required methods
fn execute(&self, value: &str) -> OperatorResult;
fn name(&self) -> &'static str;
// Provided method
fn supports_capture(&self) -> bool { ... }
}Expand description
Trait for all operators.
Required Methods§
Sourcefn execute(&self, value: &str) -> OperatorResult
fn execute(&self, value: &str) -> OperatorResult
Execute the operator against a value.
Provided Methods§
Sourcefn supports_capture(&self) -> bool
fn supports_capture(&self) -> bool
Whether this operator supports capture groups.