qubit_codec/transcode/engine/decode_incomplete_action_of.rs
1// =============================================================================
2// Copyright (c) 2026 Haixing Hu.
3//
4// SPDX-License-Identifier: Apache-2.0
5//
6// Licensed under the Apache License, Version 2.0.
7// =============================================================================
8//! Codec-bound incomplete-decode action aliases.
9
10use super::DecodeIncompleteAction;
11use crate::Codec;
12
13/// Incomplete-decode action for a codec-backed decode hook, using that codec's
14/// logical value type for replacements.
15///
16/// This alias keeps the hook's action type tied to its codec, so replacement
17/// values have the same type as values produced by decoding that codec.
18///
19/// # Type Parameters
20///
21/// - `C`: Codec whose logical value type is emitted by the decode hook.
22pub type DecodeIncompleteActionOf<C> = DecodeIncompleteAction<<C as Codec>::Value>;