qubit_function/functions/function/fn_function_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 `FnFunctionOps` public type.
12
13#![allow(unused_imports)]
14
15use super::*;
16
17// ============================================================================
18// FnFunctionOps - Extension trait for closure functions
19// ============================================================================
20
21// Generates: FnFunctionOps trait and blanket implementation
22impl_fn_ops_trait!(
23 (Fn(&T) -> R),
24 FnFunctionOps,
25 BoxFunction,
26 Function,
27 BoxConditionalFunction
28);