Skip to main content

qubit_codec/transcode/engine/
decode_invalid_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-associated invalid-decode action type.
9
10use super::DecodeInvalidAction;
11use crate::Codec;
12
13/// Invalid-decode action type used by a codec-backed decode hook.
14///
15/// This alias binds the action's replacement value to the codec's decoded
16/// value type, so hook implementations can name their result in terms of the
17/// codec they serve.
18///
19/// # Type Parameters
20///
21/// - `C`: Codec whose decoded value is carried by replacement actions.
22pub type DecodeInvalidActionOf<C> = DecodeInvalidAction<<C as Codec>::Value>;