pub trait Transform<T>: Send + Sync {
// Required method
fn apply(&self, input: T) -> Result<T, TransformError>;
}Expand description
Rewrites a T.
Required Methods§
fn apply(&self, input: T) -> Result<T, TransformError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl Transform<Document> for Filter
impl Transform<Document> for Highlight
impl Transform<Document> for Select
impl Transform<Patch> for KeepFiles
impl Transform<TableData> for Group
impl Transform<TableData> for Sort
impl<R: Redactor + Send + Sync> Transform<Document> for Redact<R>
impl<T> Transform<T> for Pipeline<T>
A pipeline is itself a transform, so pipelines nest.