1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// =============================================================================
// Copyright (c) 2026 Haixing Hu.
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0.
// =============================================================================
//! Incomplete-decode actions returned by buffered decoder policy hooks.
/// Action selected after end-of-input leaves a codec value incomplete.
///
/// The decode engine invokes this action only after the caller has established
/// EOF. A non-rejecting action consumes every source unit still available from
/// the current decode cursor.
///
/// # Type Parameters
///
/// - `Value`: Decoded output value type.
///
/// # Examples
///
/// ```
/// use qubit_codec::engine::DecodeIncompleteAction;
///
/// let action = DecodeIncompleteAction::<u8>::Emit { value: b'?' };
/// assert!(matches!(action, DecodeIncompleteAction::Emit { value: b'?' }));
/// ```