qubit_io/codec/decode_policy.rs
1/*******************************************************************************
2 *
3 * Copyright (c) 2026 Haixing Hu.
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * Licensed under the Apache License, Version 2.0.
8 *
9 ******************************************************************************/
10
11/// Describes a type-level decoding policy.
12pub trait DecodePolicy: Copy + Default {
13 /// Whether this policy rejects non-canonical encodings.
14 const STRICT: bool;
15}