From 504fe2632cf4add506dfb189c17d6e4ecf6f3824 Mon Sep 17 00:00:00 2001 From: Timon Vonk Date: Mon, 22 Jul 2024 15:26:54 +0200 Subject: [PATCH] docs(pipeline): Add note that closures can also be used as transformers --- swiftide/src/indexing/pipeline.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/swiftide/src/indexing/pipeline.rs b/swiftide/src/indexing/pipeline.rs index ea5b6201..3ef32ec4 100644 --- a/swiftide/src/indexing/pipeline.rs +++ b/swiftide/src/indexing/pipeline.rs @@ -147,6 +147,8 @@ impl Pipeline { /// Adds a transformer to the pipeline. /// + /// Closures can also be provided as transformers. + /// /// # Arguments /// /// * `transformer` - A transformer that implements the `Transformer` trait. @@ -175,6 +177,8 @@ impl Pipeline { /// Adds a batch transformer to the pipeline. /// + /// Closures can also be provided as batch transformers. + /// /// # Arguments /// /// * `batch_size` - The size of the batches to be processed.