qubit_io/codec/strict.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
11use super::DecodePolicy;
12
13/// Marker type selecting strict decoding.
14#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
15pub struct Strict;
16
17impl DecodePolicy for Strict {
18 /// Whether this policy rejects non-canonical encodings.
19 const STRICT: bool = true;
20}