pub trait AstTransform: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn transform<'a>(
&self,
events: Vec<Event<'a>>,
ctx: &TransformContext<'_>,
) -> Vec<Event<'a>>;
// Provided method
fn priority(&self) -> i32 { ... }
}Expand description
Trait for AST transformations