Skip to content

Commit

Permalink
docs(pipeline): Add note that closures can also be used as transformers
Browse files Browse the repository at this point in the history
  • Loading branch information
timonv committed Jul 22, 2024
1 parent f3091f7 commit 504fe26
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions swiftide/src/indexing/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 504fe26

Please sign in to comment.