Skip to main content

qubit_function/functions/stateful_function/
fn_stateful_function_ops.rs

1/*******************************************************************************
2 *
3 *    Copyright (c) 2025 - 2026.
4 *    Haixing Hu, Qubit Co. Ltd.
5 *
6 *    All rights reserved.
7 *
8 ******************************************************************************/
9//! Defines the `FnStatefulFunctionOps` public type.
10
11#![allow(unused_imports)]
12
13use super::*;
14
15// ============================================================================
16// FnStatefulFunctionOps - Extension trait for closure functions
17// ============================================================================
18
19// Generates: FnStatefulFunctionOps trait and blanket implementation
20impl_fn_ops_trait!(
21    (FnMut(&T) -> R),
22    FnStatefulFunctionOps,
23    BoxStatefulFunction,
24    StatefulFunction,
25    BoxConditionalStatefulFunction
26);