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