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