qubit_function/functions/function_once/fn_function_once_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 `FnFunctionOnceOps` public type.
12
13#![allow(unused_imports)]
14
15use super::*;
16
17// ============================================================================
18// FnFunctionOnceOps - Extension trait for FnOnce transformers
19// ============================================================================
20
21// Generates: FnFunctionOnceOps trait and blanket implementation
22impl_fn_ops_trait!(
23 (FnOnce(&T) -> R),
24 FnFunctionOnceOps,
25 BoxFunctionOnce,
26 FunctionOnce,
27 BoxConditionalFunctionOnce
28);