qubit-io 0.4.0

Small stream I/O trait utilities for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*******************************************************************************
 *
 *    Copyright (c) 2026 Haixing Hu.
 *
 *    SPDX-License-Identifier: Apache-2.0
 *
 *    Licensed under the Apache License, Version 2.0.
 *
 ******************************************************************************/

/// Describes a type-level decoding policy.
pub trait DecodePolicy: Copy + Default {
    /// Whether this policy rejects non-canonical encodings.
    const STRICT: bool;
}