Skip to main content

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
13use super::{
14    BoxConditionalFunction,
15    BoxFunction,
16    Function,
17    Predicate,
18    impl_fn_ops_trait,
19};
20
21// ============================================================================
22// FnFunctionOps - Extension trait for closure functions
23// ============================================================================
24
25// Generates: FnFunctionOps trait and blanket implementation
26impl_fn_ops_trait!(
27    (Fn(&T) -> R),
28    FnFunctionOps,
29    BoxFunction,
30    Function,
31    BoxConditionalFunction
32);