qubit-codec-text 0.1.0

Buffer-oriented text encoding and decoding utilities for Rust
Documentation
// =============================================================================
//    Copyright (c) 2026 Haixing Hu.
//
//    SPDX-License-Identifier: Apache-2.0
//
//    Licensed under the Apache License, Version 2.0.
// =============================================================================
/// Policy used when input units do not form a valid character.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum MalformedAction {
    /// Return the decoding error to the caller.
    Report,

    /// Skip the malformed input units and continue.
    Ignore,

    /// Emit the configured replacement character and continue.
    #[default]
    Replace,
}