Skip to main content

qubit_io/codec/
non_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 non-strict decoding.
14#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
15pub struct NonStrict;
16
17impl DecodePolicy for NonStrict {
18    /// Whether this policy accepts non-canonical encodings.
19    const STRICT: bool = false;
20}