qubit_function/transformers/transformer/fn_transformer_ops.rs
1/*******************************************************************************
2 *
3 * Copyright (c) 2025 - 2026 Haixing Hu.
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * Licensed under the Apache License, Version 2.0.
8 *
9 ******************************************************************************/
10// qubit-style: allow explicit-imports
11//! Defines the `FnTransformerOps` public type.
12
13use super::{
14 BoxConditionalTransformer,
15 BoxTransformer,
16 Predicate,
17 Transformer,
18};
19use crate::transformers::macros::impl_transformer_fn_ops_trait;
20
21// ============================================================================
22// FnTransformerOps - Extension trait for closure transformers
23// ============================================================================
24
25impl_transformer_fn_ops_trait!(
26 (Fn(T) -> R),
27 FnTransformerOps,
28 BoxTransformer,
29 Transformer,
30 BoxConditionalTransformer
31);